Source for file controller.php
Documentation is available at controller.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
* Users master display controller.
* @package Joomla.Administrator
* Checks whether a user can see this view.
* @param string $view The view name.
return $canDo->get('core.admin');
* Method to display a view.
* @param boolean If true, the view output will be cached
* @param array An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
* @return JController This object to support chaining.
public function display($cachable =
false, $urlparams =
false)
$view =
$this->input->get('view', 'users');
$layout =
$this->input->get('layout', 'default');
$id =
$this->input->getInt('id');
if ($view ==
'user' &&
$layout ==
'edit' &&
!$this->checkEditId('com_users.edit.user', $id))
// Somehow the person just went to the form - we don't allow that.
elseif ($view ==
'group' &&
$layout ==
'edit' &&
!$this->checkEditId('com_users.edit.group', $id))
// Somehow the person just went to the form - we don't allow that.
elseif ($view ==
'level' &&
$layout ==
'edit' &&
!$this->checkEditId('com_users.edit.level', $id))
// Somehow the person just went to the form - we don't allow that.
elseif ($view ==
'note' &&
$layout ==
'edit' &&
!$this->checkEditId('com_users.edit.note', $id))
// Somehow the person just went to the form - we don't allow that.
Documentation generated on Tue, 19 Nov 2013 14:57:33 +0100 by phpDocumentor 1.4.3