You've already forked qlg.tsgz.moe
							
							
		
			
				
	
	
		
			14 lines
		
	
	
		
			294 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			294 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
<?php
 | 
						|
class LtCacheAdapterFactory
 | 
						|
{
 | 
						|
	public function getConnectionAdapter($adapter)
 | 
						|
	{	
 | 
						|
		$adapterClassName = "LtCacheAdapter" . ucfirst($adapter);
 | 
						|
		if(!class_exists($adapterClassName))
 | 
						|
		{
 | 
						|
			trigger_error("Invalid adapter: $adapter");
 | 
						|
			return null;
 | 
						|
		}
 | 
						|
		return new $adapterClassName;
 | 
						|
	}
 | 
						|
} |