/** * 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.'); } }
/** * 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(); }
/** * 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; }