PHP Class Habari\AdminGroupsHandler

Inheritance: extends AdminHandler
ファイルを表示 Open project: habari/system

Public Methods

Method Description
__construct ( )
ajax_groups ( $handler_vars ) Handles AJAX requests from the groups page.
ajax_update_groups ( $handler_vars ) Handles AJAX requests to update groups.
do_add_group ( FormUI $form ) Success method for the add_group form
get_group ( ) Handles GET requests for a group's page.
get_groups ( ) Handles GET requests for the groups page.
post_group ( ) Handles POST requests to a group's page.
post_groups ( ) Handles POST requests for the groups page.
update_groups ( $handler_vars, $ajax = true ) Add or delete groups.
validate_add_group ( mixed $unused, FormUI $form ) : array Validation for the add_group form

Method Details

__construct() public method

public __construct ( )

ajax_groups() public method

Handles AJAX requests from the groups page.
public ajax_groups ( $handler_vars )

ajax_update_groups() public method

Handles AJAX requests to update groups.
public ajax_update_groups ( $handler_vars )

do_add_group() public method

Success method for the add_group form
public do_add_group ( FormUI $form )
$form FormUI The add_group form

get_group() public method

Handles GET requests for a group's page.
public get_group ( )

get_groups() public method

Handles GET requests for the groups page.
public get_groups ( )

post_group() public method

Handles POST requests to a group's page.
public post_group ( )

post_groups() public method

Handles POST requests for the groups page.
public post_groups ( )

update_groups() public method

Add or delete groups.
public update_groups ( $handler_vars, $ajax = true )

validate_add_group() public method

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