/** * Initializes the options for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options */ protected function _initialize(KConfig $config) { $count = count($this->getIdentifier()->path); $config->append(array('path' => '', 'filename' => $this->getIdentifier()->path[$count - 1] . '.' . $this->getIdentifier()->name, 'disposition' => 'attachment')); parent::_initialize($config); }
/** * Initializes the config for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options */ protected function _initialize(KConfig $config) { $config->append(array('padding' => '', 'version' => '1.0'))->append(array('mimetype' => 'application/json; version=' . $config->version)); parent::_initialize($config); }
/** * Initializes the config for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options */ protected function _initialize(KConfig $config) { $config->append(array('escape' => 'htmlspecialchars', 'template' => $this->getName(), 'template_filters' => array('shorttag', 'alias', 'variable'), 'template_paths' => array(), 'auto_assign' => true, 'media_url' => '/media')); parent::_initialize($config); }
/** * Initializes the config for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param object An optional KConfig object with configuration options */ protected function _initialize(KConfig $config) { $config->append(array('mimetype' => 'application/rss')); parent::_initialize($config); }