/** * Initializes the decorator. * * @param MW_Config_Interface $object Config object or decorator * @param string $prefix Prefix for keys to distinguish several instances */ public function __construct(MW_Config_Interface $object, $prefix = '') { if (function_exists('apc_store') === false) { throw new MW_Config_Exception('APC not available'); } parent::__construct($object); $this->_prefix = $prefix; }
/** * Initializes the decorator. * * @param MW_Config_Interface $object Config object or decorator * @param array $config Pre-cached non-shared configuration */ public function __construct(MW_Config_Interface $object, $config = array()) { parent::__construct($object); $this->_config = $config; }
/** * Initializes the decorator. * * @param MW_Config_Interface $object Config object or decorator * @param string $filename File name the collected configuration is written to */ public function __construct(MW_Config_Interface $object, $filename = 'confdoc.ser') { parent::__construct($object); // this object is not cloned! $this->_file = new My_Config_File($filename); }