示例#1
0
	/**
     * 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);
    }
示例#2
0
文件: ui.php 项目: stonyyi/anahita
 /**
  * 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;
 }
示例#3
0
 /**
  * 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);
 }
示例#4
0
文件: file.php 项目: stonyyi/anahita
 /**
  * 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);
 }