Beispiel #1
0
 /**
  * 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)
 {
     $params = '';
     if (is_readable($file = JPATH_THEMES . '/' . $this->getIdentifier()->package . '/params.ini')) {
         $params = file_get_contents($file);
     }
     $params = new JParameter($params);
     $config->append(array('mimetype' => 'text/html', 'params' => $params->toArray(), 'template_filters' => array('shorttag', 'html', 'alias')));
     parent::_initialize($config);
 }
Beispiel #2
0
 /**
  * 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.
  * 
  * @return void
  */
 protected function _initialize(KConfig $config)
 {
     $config->append(array('template_filters' => array('script', 'style'), 'mimetype' => 'text/html'));
     parent::_initialize($config);
 }