Source for file users.php
Documentation is available at users.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 list controller class.
* @package Joomla.Administrator
* @var string The prefix to use with controller messages.
* @param array $config An optional associative array of configuration settings.
* @return UsersControllerUsers
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
* @return object The model.
public function getModel($name =
'User', $prefix =
'UsersModel', $config =
array('ignore_request' =>
true))
return parent::getModel($name, $prefix, $config);
* Method to change the block status on a record.
// Check for request forgeries.
$ids =
$this->input->get('cid', array(), 'array');
$values =
array('block' =>
1, 'unblock' =>
0);
// Change the state of the records.
if (!$model->block($ids, $value))
$this->setRedirect('index.php?option=com_users&view=users');
* Method to activate a record.
// Check for request forgeries.
$ids =
$this->input->get('cid', array(), 'array');
// Change the state of the records.
if (!$model->activate($ids))
$this->setRedirect('index.php?option=com_users&view=users');
Documentation generated on Tue, 19 Nov 2013 15:16:36 +0100 by phpDocumentor 1.4.3