/** * 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) { $config->append(array( 'menubar' => null, )); 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. */ protected function _initialize(KConfig $config) { $path[] = dirname(__FILE__) . '/ui'; $config->append(array('paths' => $path)); if (!$config->template) { $template = $this->getService('com://site/base.template.default'); $template->addFilter('alias')->addFilter('shorttag'); $config->append(array('template' => $template)); } parent::_initialize($config); $paths = KConfig::unbox($config->paths); array_unshift($paths, JPATH_THEMES . '/' . JFactory::getApplication()->getTemplate() . '/html/com_base/ui'); $config->paths = $paths; }
/** * 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) { $config->append(array('paths' => array(JPATH_ROOT . '/components/com_stories/templates/stories', JPATH_ROOT . '/components/com_actors/templates/stories'), 'filters' => array('alias', 'shorttag'), 'alias' => array('@escape(' => 'htmlspecialchars(', '@route(' => 'JRoute::_(', '@name(' => '$this->renderHelper(\'com://site/actors.template.helper.story.names\',', '@possessive(' => '$this->renderHelper(\'com://site/stories.template.helper.story.possessiveNoune\',$story,', '@link(' => '$this->renderHelper(\'com://site/actors.template.helper.story.link\','))); parent::_initialize($config); }
/** * Initializes the default configuration for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param KConfig $config An optional KConfig object with configuration options. */ protected function _initialize(KConfig $config) { $config->append(array('cache_file' => JPATH_CACHE . '/' . basename($this->_file) . '.' . md5($this->_file))); parent::_initialize($config); }