/** * Initializes the config for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KObjectConfig $config Configuration options * @return void */ public function __construct(KObjectConfig $config) { parent::__construct($config); /** * @todo is this the right place to append the currently logged-in user to the view? */ $this->_data['user'] = $this->getObject('user'); }
/** * Constructor * * @param array An optional associative array of configuration settings. */ public function __construct(KConfig $config) { parent::__construct($config); //Assign module specific options $this->params = $config->params; $this->module = $config->module; $this->attribs = $config->attribs; $template = KFactory::get('lib.joomla.application')->getTemplate(); $path = JPATH_THEMES . DS . $template . DS . 'html' . DS . 'mod_' . $this->_identifier->package; $this->getTemplate()->addPath($path); }