예제 #1
0
 /**
  * Constructor
  *
  * @param KObjectConfig  $config  A ObjectConfig object with optional configuration options
  * @throws RuntimeException  If the APC PHP extension is not enabled or available
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     if (!static::isSupported()) {
         throw new RuntimeException('Unable to use TemplateEngineCache. APC is not enabled.');
     }
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param KObjectConfig  $config  A ObjectConfig object with optional configuration options
  * @throws RuntimeException    If the APC PHP extension is not enabled or available
  */
 public function __construct(KObjectConfig $config)
 {
     parent::__construct($config);
     if (!static::isSupported()) {
         throw new RuntimeException('Unable to use TranslatorCache. APC is not enabled.');
     }
     $this->_loaded = array();
 }
예제 #3
0
파일: proxy.php 프로젝트: stonyyi/anahita
 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_value = $config->value;
     $this->_property = $config->property;
     $this->_relationship = $config->relationship;
     self::$_values[$this->getIdentifier() . $this->_property][] = $this->_value;
 }