Public Member Functions

AdminUsersHandler Class Reference

Inheritance diagram for AdminUsersHandler:
Collaboration diagram for AdminUsersHandler:

List of all members.

Public Member Functions

 __construct ()
 get_user ()
 validate_edit_user ($unused, $control, $form)
 validate_delete_user ($unused, $control, $form)
 edit_user_apply (FormUI $form)
 post_user ()
 get_users ()
 post_users ()
 validate_add_user ($unused, $form)
 do_add_user (FormUI $form)
 validate_delete_users ($unused, $form)

Detailed Description

Habari AdminUsersHandler Class Handles user-related actions in the admin

Definition at line 14 of file adminusershandler.php.


Constructor & Destructor Documentation

AdminUsersHandler::__construct (  ) 

Verifies user credentials before creating the theme and displaying the request.

Reimplemented from AdminHandler.

Definition at line 16 of file adminusershandler.php.


Member Function Documentation

AdminUsersHandler::do_add_user ( FormUI form  ) 

Success method for the add_user form

Parameters:
FormUI $form The add_user form

Definition at line 463 of file adminusershandler.php.

AdminUsersHandler::edit_user_apply ( FormUI form  ) 

The on_success handler of the Apply button on the user profile editing page

Parameters:
FormUI $form

Definition at line 335 of file adminusershandler.php.

AdminUsersHandler::get_user (  ) 

Handles GET requests of a user page.

Definition at line 195 of file adminusershandler.php.

AdminUsersHandler::get_users (  ) 

Handles GET requests of the users page.

Definition at line 415 of file adminusershandler.php.

AdminUsersHandler::post_user (  ) 

Handles POST requests from the user profile page.

Definition at line 407 of file adminusershandler.php.

AdminUsersHandler::post_users (  ) 

Handles POST requests from the Users listing (ie: creating a new user, deleting from the user list)

Definition at line 435 of file adminusershandler.php.

AdminUsersHandler::validate_add_user ( unused,
form 
)

Validation for the add_user form

Parameters:
mixed $unused This is technically the value of the form itself, which is unknown
FormUI $form The add_user form
Returns:
array An array of errors, or an empty array if no errors

Definition at line 449 of file adminusershandler.php.

AdminUsersHandler::validate_delete_user ( unused,
control,
form 
)

Validation for when a user is deleted

Parameters:
$unused 
FormControlSubmit $control The Delete button
FormUI $form The editing form
Returns:
array An empty array if there are no errors, or strings describing the error.

Definition at line 273 of file adminusershandler.php.

AdminUsersHandler::validate_delete_users ( unused,
form 
)

Validation for the delete_users form

Parameters:
mixed $unused This is technically the value of the form itself, which is unknown
FormUI $form The delete_users form
Returns:
array An array of errors, or an empty array if no errors

Definition at line 482 of file adminusershandler.php.

AdminUsersHandler::validate_edit_user ( unused,
control,
form 
)

Validation for when a user is edited

Parameters:
$unused 
FormControlSubmit $control The Apply button
FormUI $form The editing form
Returns:
array An empty array if there are no errors, or strings describing the error.

Definition at line 247 of file adminusershandler.php.


The documentation for this class was generated from the following file: