Exemplo n.º 1
0
 /**
  * config view display method
  * @return void
  **/
 function display($tpl = null)
 {
     //initialise variables
     $user = JFactory::getUser();
     $document = JFactory::getDocument();
     $db = JFactory::getDBO();
     $canDo = JDownloadsHelper::getActions();
     if ($canDo->get('edit.config')) {
         // Get data from the model
         $items = $this->get('Data');
         $config_select_fields = JDownloadsHelper::getConfigSelectFields();
         $this->assignRef('items', $items);
         $this->assignRef('select_fields', $config_select_fields);
     }
     $this->addToolbar();
     parent::display($tpl);
 }