Ejemplo n.º 1
0
 /**
  * Push the toolbar into the view
  * .
  *
  * @param	KEvent	A event object
  */
 public function onAfterControllerGet(KEvent $event)
 {
     $this->addParameterCommand();
     //Render the menubar
     $document = JFactory::getDocument();
     $config = array('menubar' => $this);
     $menubar = $event->getPublisher()->getView()->getTemplate()->getHelper('menubar')->render($config);
     $document->setBuffer($menubar, 'modules', 'submenu');
 }
Ejemplo n.º 2
0
 /**
  * Push the toolbar into the view
  * .
  *
  * @param	KEvent	A event object
  */
 public function onBeforeControllerGet(KEvent $event)
 {
     KService::set('com:controller.toolbar', $this);
     $event->getPublisher()->getView()->toolbar = $this;
 }
Ejemplo n.º 3
0
 /**
  * Push the toolbar into the view
  * .
  * @param	KEvent	A event object
  */
 public function onBeforeControllerGet(KEvent $event)
 {
     $event->getPublisher()->getView()->toolbar = $this;
 }