示例#1
0
 /**
  * Constructor.
  *
  * @param   object  An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     //set the view
     $this->_view = $config->view;
     //register display as get so $this->display() return
     //$this->get()
     $this->registerActionAlias('display', 'get');
     // Mixin the toolbar
     if ($config->dispatch_events) {
         $this->mixin(new KMixinToolbar($config->append(array('mixer' => $this))));
     }
     JFactory::getLanguage()->load($this->getIdentifier()->package);
 }
示例#2
0
 /**
  * Constructor.
  *
  * @param KConfig $config An optional KConfig object with configuration options.
  *
  * @return void
  */
 public function __construct(KConfig $config)
 {
     parent::__construct($config);
     $this->_controller = $config->controller;
 }