Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* View class for a list of users.
* @package Joomla.Administrator
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
public function display($tpl =
null)
$this->filterForm =
$this->get('FilterForm');
$this->activeFilters =
$this->get('ActiveFilters');
if (count($errors =
$this->get('Errors')))
// Include the component HTML helpers.
JHtml::addIncludePath(JPATH_COMPONENT .
'/helpers/html');
* Add the page title and toolbar.
// Get the toolbar object instance
$bar =
JToolBar::getInstance('toolbar');
if ($canDo->get('core.create'))
if ($canDo->get('core.edit'))
if ($canDo->get('core.edit.state'))
JToolbarHelper::custom('users.unblock', 'unblock.png', 'unblock_f2.png', 'COM_USERS_TOOLBAR_UNBLOCK', true);
if ($canDo->get('core.delete'))
if ($user->authorise('core.create', 'com_users') &&
$user->authorise('core.edit', 'com_users') &&
$user->authorise('core.edit.state', 'com_users'))
JHtml::_('bootstrap.modal', 'collapseModal');
$title =
JText::_('JTOOLBAR_BATCH');
// Instantiate a new JLayoutFile instance and render the batch button
$dhtml =
$layout->render(array('title' =>
$title));
$bar->appendButton('Custom', $dhtml, 'batch');
if ($canDo->get('core.admin'))
* Returns an array of fields the table can be sorted by
* @return array Array containing the field name to sort by as the key and display text as value
'a.name' =>
JText::_('COM_USERS_HEADING_NAME'),
'a.username' =>
JText::_('JGLOBAL_USERNAME'),
'a.block' =>
JText::_('COM_USERS_HEADING_ENABLED'),
'a.activation' =>
JText::_('COM_USERS_HEADING_ACTIVATED'),
'a.email' =>
JText::_('JGLOBAL_EMAIL'),
'a.lastvisitDate' =>
JText::_('COM_USERS_HEADING_LAST_VISIT_DATE'),
'a.registerDate' =>
JText::_('COM_USERS_HEADING_REGISTRATION_DATE'),
'a.id' =>
JText::_('JGRID_HEADING_ID')
Documentation generated on Tue, 19 Nov 2013 15:18:05 +0100 by phpDocumentor 1.4.3