PHP Class Habari\AdminUsersHandler

Inheritance: extends AdminHandler
Datei anzeigen Open project: habari/system

Public Methods

Method Description
__construct ( )
do_add_user ( FormUI $form ) Success method for the add_user form
do_delete_users ( FormUI $form ) Success method for the delete_users form
edit_user_apply ( FormUI $form ) The on_success handler of the Apply button on the user profile editing page
edit_user_delete ( FormUI $form ) The on_success handler of the Delete button on the user profile editing page
get_user ( ) Handles GET requests of a user page.
get_users ( ) Handles GET requests of the users page.
post_user ( ) Handles POST requests from the user profile page.
post_users ( ) Handles POST requests from the Users listing (ie: creating a new user, deleting from the user list)
validate_add_user ( mixed $unused, FormUI $form ) : array Validation for the add_user form
validate_delete_user ( $unused, FormControlSubmit $control, FormUI $form ) : array Validation for when a user is deleted
validate_delete_users ( mixed $unused, FormUI $form ) : array Validation for the delete_users form
validate_edit_user ( $unused, FormControlSubmit $control, FormUI $form ) : array Validation for when a user is edited

Method Details

__construct() public method

public __construct ( )

do_add_user() public method

Success method for the add_user form
public do_add_user ( FormUI $form )
$form FormUI The add_user form

do_delete_users() public method

Success method for the delete_users form
public do_delete_users ( FormUI $form )
$form FormUI The delete_users form

edit_user_apply() public method

The on_success handler of the Apply button on the user profile editing page
public edit_user_apply ( FormUI $form )
$form FormUI

edit_user_delete() public method

The on_success handler of the Delete button on the user profile editing page
public edit_user_delete ( FormUI $form )
$form FormUI

get_user() public method

Handles GET requests of a user page.
public get_user ( )

get_users() public method

Handles GET requests of the users page.
public get_users ( )

post_user() public method

Handles POST requests from the user profile page.
public post_user ( )

post_users() public method

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

validate_add_user() public method

Validation for the add_user form
public validate_add_user ( mixed $unused, FormUI $form ) : array
$unused mixed This is technically the value of the form itself, which is unknown
$form FormUI The add_user form
return array An array of errors, or an empty array if no errors

validate_delete_user() public method

Validation for when a user is deleted
public validate_delete_user ( $unused, FormControlSubmit $control, FormUI $form ) : array
$unused
$control FormControlSubmit The Delete button
$form FormUI The editing form
return array An empty array if there are no errors, or strings describing the error.

validate_delete_users() public method

Validation for the delete_users form
public validate_delete_users ( mixed $unused, FormUI $form ) : array
$unused mixed This is technically the value of the form itself, which is unknown
$form FormUI The delete_users form
return array An array of errors, or an empty array if no errors

validate_edit_user() public method

Validation for when a user is edited
public validate_edit_user ( $unused, FormControlSubmit $control, FormUI $form ) : array
$unused
$control FormControlSubmit The Apply button
$form FormUI The editing form
return array An empty array if there are no errors, or strings describing the error.