protected function _initialize(KConfig $config) { $config->append(array( 'mimetype' => 'application/rss+xml', )); 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 * @return void */ protected function _initialize(KConfig $config) { $config->append(array( 'mimetype' => 'application/json', 'padding' => '' )); parent::_initialize($config); }
/** * 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 * @return void */ 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', 'transport' => 'php')); 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 * @return void */ protected function _initialize(KConfig $config) { $config->append(array('escape' => 'htmlspecialchars', 'layout_default' => 'default', 'template' => null, 'template_filters' => array('shorttag', 'alias', 'variable', 'script', 'style', 'link'), 'template_path' => null, 'auto_assign' => true, 'auto_filter' => false, 'base_url' => KRequest::base(), 'media_url' => KRequest::root() . '/media'))->append(array('layout' => $config->layout_default)); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('version' => '1.0', 'disposition' => 'inline', 'quote' => '"', 'separator' => ',', 'eol' => "\n"))->append(array('mimetype' => 'text/csv; 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 * @return void */ protected function _initialize(KConfig $config) { //Clone the identifier $identifier = clone $this->getIdentifier(); $config->append(array('data' => array(), 'escape' => 'htmlspecialchars', 'template' => $this->getName(), 'template_filters' => array('shorttag', 'alias', 'variable', 'script', 'style', 'link', 'template'), '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 KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('version' => '1.0', 'fields' => array(), 'text_fields' => array('description')))->append(array('mimetype' => 'application/json; version=' . $config->version)); parent::_initialize($config); }
/** * Initializes the options for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('mimetype' => 'text/x-vcard; version=2.1')); parent::_initialize($config); }
/** * Initializes the config for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ protected function _initialize(KObjectConfig $config) { $config->append(array('auto_fetch' => true, 'layout' => '', 'template' => 'default', 'template_filters' => array('asset', 'decorator'), 'template_functions' => array('route' => array($this, 'getRoute'), 'url' => array($this, 'getUrl'), 'title' => array($this, 'getTitle'), 'content' => array($this, 'getContent')))); 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 * @return void */ protected function _initialize(KConfig $config) { $config->append(array('padding' => '', 'version' => '1.0'))->append(array('mimetype' => 'application/json; version=' . $config->version)); parent::_initialize($config); }