PHP Класс Habari\AdminGroupsHandler

Наследование: extends AdminHandler
Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

public __construct ( )

ajax_groups() публичный Метод

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

ajax_update_groups() публичный Метод

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

do_add_group() публичный Метод

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

get_group() публичный Метод

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

get_groups() публичный Метод

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

post_group() публичный Метод

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

post_groups() публичный Метод

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

update_groups() публичный Метод

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

validate_add_group() публичный Метод

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
Результат array An array of errors, or an empty array if no errors