Cache::__construct PHP Méthode

__construct() public méthode

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

Usage Example

Exemple #1
0
 /**
  * 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