示例#1
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $this->actions = $this->get('DebugActions');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->group = $this->get('Group');
     $this->levels = UsersHelperDebug::getLevelsOptions();
     $this->components = UsersHelperDebug::getComponents();
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
示例#2
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // Access check.
     if (!JFactory::getUser()->authorise('core.manage', 'com_users') || !JFactory::getConfig()->get('debug')) {
         return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
     }
     $this->actions = $this->get('DebugActions');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->user = $this->get('User');
     $this->levels = UsersHelperDebug::getLevelsOptions();
     $this->components = UsersHelperDebug::getComponents();
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
示例#3
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // Access check.
     if (!User::authorise('core.manage', 'com_users') || !Config::get('debug')) {
         throw new Exception(Lang::txt('JERROR_ALERTNOAUTHOR'), 404);
     }
     $this->actions = $this->get('DebugActions');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->user = $this->get('User');
     $this->levels = UsersHelperDebug::getLevelsOptions();
     $this->components = UsersHelperDebug::getComponents();
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors), 500);
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
示例#4
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     // Access check.
     if (!JFactory::getUser()->authorise('core.manage', 'com_users') || !JFactory::getConfig()->get('debug')) {
         JFactory::getApplication()->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
         return false;
     }
     $this->actions = $this->get('DebugActions');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->group = $this->get('Group');
     $this->levels = UsersHelperDebug::getLevelsOptions();
     $this->components = UsersHelperDebug::getComponents();
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         throw new Exception(implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     $this->sidebar = JHtmlSidebar::render();
     parent::display($tpl);
 }
 /**
  * Method to get the field options.
  *
  * @return  array  The field option objects
  *
  * @since   3.6.0
  */
 protected function getOptions()
 {
     // Merge any additional options in the XML definition.
     return array_merge(parent::getOptions(), UsersHelperDebug::getComponents());
 }