Cache::__construct PHP 메소드

__construct() 공개 메소드

Class constructor
public __construct ( $dsn = FALSE ) : object
$dsn bool|string
리턴 object
    function __construct($dsn = FALSE)
    {
        if ($dsn) {
            $this->load($dsn);
        }
    }

Usage Example

예제 #1
0
파일: wincache.php 프로젝트: laiello/ko3
 /**
  * Check for existence of the wincache extension This method cannot be invoked externally. The driver must
  * be instantiated using the `Cache::instance()` method.
  *
  * @param  array     configuration
  * @throws Kohana_Cache_Exception
  */
 protected function __construct(array $config)
 {
     if (!extension_loaded('wincache')) {
         throw new Kohana_Cache_Exception('PHP wincache extension is not available.');
     }
     parent::__construct($config);
 }
All Usage Examples Of Cache::__construct