/** * Initializes the decorator * * @param \Aimeos\MW\Config\Iface $object Config object or decorator * @param array $prefixes Allowed prefixes for getting and setting values */ public function __construct(\Aimeos\MW\Config\Iface $object, array $prefixes = array()) { parent::__construct($object); foreach ($prefixes as $prefix) { $this->prefixes[$prefix] = strlen($prefix); } }
/** * Initializes the decorator. * * @param \Aimeos\MW\Config\Iface $object Config object or decorator * @param string $prefix Prefix for keys to distinguish several instances */ public function __construct(\Aimeos\MW\Config\Iface $object, $prefix = '') { if (function_exists('apc_store') === false) { throw new \Aimeos\MW\Config\Exception('APC not available'); } parent::__construct($object); $this->prefix = $prefix; }
/** * Initializes the decorator. * * @param \Aimeos\MW\Config\Iface $object Config object or decorator * @param string $filename File name the collected configuration is written to */ public function __construct(\Aimeos\MW\Config\Iface $object, $filename = 'confdoc.ser') { parent::__construct($object); // this object is not cloned! $this->file = new ConfigFile($filename); }
/** * Initializes the decorator. * * @param \Aimeos\MW\Config\Iface $object Config object or decorator * @param array $config Pre-cached non-shared configuration */ public function __construct(\Aimeos\MW\Config\Iface $object, $config = array()) { parent::__construct($object); $this->config = $config; }