コード例 #1
0
ファイル: Wincache.php プロジェクト: viesagroup/Prisma
 /**
  * Constructor.
  *
  * @param   array  $options  Caching options object.
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function __construct($options = array())
 {
     if (!extension_loaded('wincache') || !is_callable('wincache_ucache_get')) {
         throw new \RuntimeException('WinCache not supported.');
     }
     parent::__construct($options);
 }
コード例 #2
0
ファイル: Redis.php プロジェクト: viesagroup/Prisma
 /**
  * Constructor.
  *
  * @param   mixed  $options  An options array, or an object that implements \ArrayAccess
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function __construct($options = array())
 {
     if (!extension_loaded('redis') || !class_exists('\\Redis')) {
         throw new \RuntimeException('Redis not supported.');
     }
     parent::__construct($options);
 }
コード例 #3
0
ファイル: Apc.php プロジェクト: viesagroup/Prisma
 /**
  * Constructor.
  *
  * @param   mixed  $options  An options array, or an object that implements \ArrayAccess
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function __construct($options = array())
 {
     if (!extension_loaded('apc') || !is_callable('apc_fetch')) {
         throw new \RuntimeException('APC not supported.');
     }
     parent::__construct($options);
 }
コード例 #4
0
ファイル: File.php プロジェクト: ZerGabriel/joomla-framework
 /**
  * Constructor.
  *
  * @param   mixed  $options  An options array, or an object that implements \ArrayAccess
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     if (!isset($this->options['file.locking'])) {
         $this->options['file.locking'] = true;
     }
     $this->checkFilePath($this->options['file.path']);
 }
コード例 #5
0
ファイル: File.php プロジェクト: viesagroup/Prisma
 /**
  * Constructor.
  *
  * @param   mixed  $options  An options array, or an object that implements \ArrayAccess
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function __construct($options = array())
 {
     if (!isset($options['file.locking'])) {
         $options['file.locking'] = true;
     }
     if (!isset($options['file.path'])) {
         throw new \RuntimeException('The file.path option must be set.');
     }
     $this->checkFilePath($options['file.path']);
     parent::__construct($options);
 }
コード例 #6
0
 /**
  * Constructor.
  *
  * @param   mixed  $options  An options array, or an object that implements \ArrayAccess
  *
  * @since   1.0
  * @throws  \RuntimeException
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->db = new \ArrayObject();
 }