/** * Constructor * * @param object &$subject The object to observe * @param array $config An array that holds the plugin configuration * */ public function __construct(&$subject, $config) { parent::__construct($subject, $config); if ($this->params->get('sub_layout') and $this->params->get('sub_layout') != '_:default') { $this->sub_layout = str_replace('_:', '', $this->params->get('sub_layout')); } }
/** * Constructor * * @param object &$subject The object to observe * @param array $config An array that holds the plugin configuration */ public function __construct(&$subject, $config) { if ($this->bootFramework()) { $configuration = new KObjectConfig(); $this->_initialize($configuration); foreach ($configuration as $key => $value) { $this->{$key} = KObjectConfig::unbox($value); } } parent::__construct($subject, $config); $this->loadLanguage(); }
public function __construct(&$subject, $config) { // load ZOO config jimport('joomla.filesystem.file'); if (!JFile::exists(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php') || !JComponentHelper::getComponent('com_zoo', true)->enabled) { return; } require_once JPATH_ADMINISTRATOR . '/components/com_zoo/config.php'; // Get the ZOO App instance $this->app = App::getInstance('zoo'); parent::__construct($subject, $config); // load zoo frontend language file $this->app->system->language->load('com_zoo'); }
/** * Constructor * * @param object &$subject The object to observe * @param array $config An array that holds the plugin configuration * * @since 2.5 */ public function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage(); }
/** * Constructor * * @param object &$subject The object to observe * @param array $config An array that holds the plugin configuration * */ public function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage(); // we don't use $this->autoloadLanguage available since 3.1 if (empty($this->jVer)) { $this->jVer = (!empty($this->indexer) && method_exists($this->indexer, 'index')) ? 3 : 2; } }
protected function getURL($id, $extension, $view) { return parent::getUrl($id, $extension, $view) . "#%"; }