Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

UsersController Class Reference

UsersController: administrate users and groups. More...

Inheritance diagram for UsersController:
ModulesController AppController

List of all members.

Public Member Functions

 index ()
 usersWithoutCard ()
 Load users that haven't a card related.
 showUsersToAddToGroup ($id=null)
 Load users that don't belong to given group.
 userInGroupHtml ($id=null)
 saveUser ()
 saveUserAjax ()
 removeUser ()
 blockUser ()
 viewUser ($id=NULL)
 groups ()
 viewGroup ($id=null)
 saveGroup ()
 removeGroup ()

Public Attributes

 $uses = array('User', 'Group')
 $helpers = array('Paginator')
 $components = array('BeSecurity')
 $paginate

Protected Member Functions

 getUsers ($conditions=array())
 Return a paginated user list.
 isUserEditable ($id, $deletion=false)
 return user data if user in session can edit him
 addUsersToGroup ()
 removeUsersFromGroup ()
 forward ($action, $result)
 Default forward for BEdita modules - to overrider in module controllers if needed.

Protected Attributes

 $moduleName = 'users'

Detailed Description

UsersController: administrate users and groups.

Version:
$Revision$ $LastChangedBy$ $LastChangedDate$

$Id$

Definition at line 31 of file users_controller.php.


Member Function Documentation

UsersController::forward ( action,
result 
) [protected]

Default forward for BEdita modules - to overrider in module controllers if needed.

See also:
AppController::forward()

Reimplemented from ModulesController.

Definition at line 688 of file users_controller.php.

References ModulesController::moduleForward().

UsersController::getUsers ( conditions = array()  )  [protected]

Return a paginated user list.

If 'query' filter is set add it to $conditions

Parameters:
array $conditions
Returns:
array

Definition at line 79 of file users_controller.php.

Referenced by showUsersToAddToGroup(), and usersWithoutCard().

UsersController::isUserEditable ( id,
deletion = false 
) [protected]

return user data if user in session can edit him

Parameters:
int $id
bool $deletion
Returns:
mixed

Definition at line 309 of file users_controller.php.

References BeLib::getObject().

UsersController::saveGroup (  ) 
Exceptions:
BeditaException 

Definition at line 471 of file users_controller.php.

References AppController::eventInfo(), and AppController::userInfoMessage().

UsersController::showUsersToAddToGroup ( id = null  ) 

Load users that don't belong to given group.

Returns:
void

Definition at line 133 of file users_controller.php.

References getUsers().

UsersController::usersWithoutCard (  ) 

Load users that haven't a card related.

Used to promote card as user from Addressbook module

Returns:
void

Definition at line 103 of file users_controller.php.

References getUsers().


Member Data Documentation

UsersController::$paginate
Initial value:
 array(
        'User' => array(
            'limit' => 20,
            'page' => 1,
            'order' => array('created' => 'desc')
        ),
        'Group' => array(
            'limit' => 20,
            'page' => 1,
            'order' => array('created' => 'desc')
        )
    )

Definition at line 39 of file users_controller.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus