コード例 #1
0
ファイル: File.php プロジェクト: raymondjavaxx/roxphp
 /**
  * Constructor
  *
  * @param array $config
  */
 public function __construct($config)
 {
     $defaults = array('path' => ROX_APP_PATH . '/tmp/cache');
     parent::__construct($config + $defaults);
     if (!is_dir($this->_config['path'])) {
         throw new Exception('Cache path does not exists');
     }
 }
コード例 #2
0
ファイル: Memcache.php プロジェクト: raymondjavaxx/roxphp
 /**
  * Constructor
  *
  * @param array $options
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_initialize();
 }