Пример #1
0
 /**
  * Override {@link epConfigurable::setConfig}
  * @param array|epConfig
  * @return void
  */
 public function setConfig($config)
 {
     // call parent to set config
     if (!parent::setConfig($config)) {
         return false;
     }
     // make sure cached compiled_dir is consistent with newly set config
     $this->compiled_dir = $this->getConfigOption('compiled_dir');
     // if output dir is a relative path, make is absolute
     $this->compiled_dir = $this->getAbsolutePath($this->compiled_dir);
 }
Пример #2
0
 /**
  * Implement abstract method {@link epConfigurable::defConfig()}
  * @access public
  */
 public function defConfig()
 {
     return array_merge(parent::defConfig(), array("cache_server" => "localhost", "cache_port" => 11211, "cache_compress" => true, "cache_ttl" => 360, "cache_dir" => '/tmp'));
 }
Пример #3
0
 /**
  * Constructor
  * @param epConfig|array 
  * @access public
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
 }