Inheritance: extends FOF30\View\View, implements FOF30\View\DataView\DataViewInterface
Ejemplo n.º 1
0
 /**
  * Assigns callback functions to the class, the $methods array should be an associative one, where
  * the keys are the method names, while the values are the closure functions, e.g.
  *
  * array(
  *    'foobar' => function(){ return 'Foobar'; }
  * )
  *
  * @param       $container
  * @param array $config
  * @param array $methods
  */
 public function __construct(Container $container, array $config = array(), array $methods = array())
 {
     foreach ($methods as $method => $function) {
         $this->methods[$method] = $function;
     }
     parent::__construct($container, $config);
 }
Ejemplo n.º 2
0
 public function display($tpl = null)
 {
     $task = $this->getModel()->getState('task', 'all');
     if (!in_array($task, ['all', 'category', 'stream', 'jed'])) {
         $this->doTask = 'all';
     }
     $document = \JFactory::getDocument();
     $document->setMimeEncoding('text/xml');
     return parent::display($tpl);
 }
Ejemplo n.º 3
0
Archivo: Html.php Proyecto: akeeba/fof
 /**
  * Executes before rendering the page for the Edit task.
  */
 protected function onBeforeEdit()
 {
     // Hide main menu
     \JFactory::getApplication()->input->set('hidemainmenu', true);
     parent::onBeforeEdit();
 }