PHP Class Habari\AdminTagsHandler

Inheritance: extends AdminHandler
Exibir arquivo Open project: habari/system

Public Methods

Method Description
__construct ( )
ajax_tags ( ) Handles AJAX from /admin/tags Used to search for, delete and rename tags
filter_facets ( array $facets ) : array Plugin hook filter for the facet list
filter_facetvalues ( array $values, string $facet, string $q ) : array Plugin hook filter for the values of a faceted search
get_tag_listitems ( ) Generate FormUI checkboxes wrapped in listitems for the tag collection. Is used with and without AJAX
get_tags ( ) Handle GET requests for /admin/tags to display the tags.
post_tags ( ) Handle POST requests for /admin/tags
process_tags ( FormUI $form ) Handles submitted tag forms and processes tag actions

Method Details

__construct() public method

public __construct ( )

ajax_tags() public method

Handles AJAX from /admin/tags Used to search for, delete and rename tags
public ajax_tags ( )

filter_facets() public static method

Plugin hook filter for the facet list
public static filter_facets ( array $facets ) : array
$facets array An array of facets for the current faceted search
return array The array of facets

filter_facetvalues() public static method

Plugin hook filter for the values of a faceted search
public static filter_facetvalues ( array $values, string $facet, string $q ) : array
$values array The incoming array of values for this facet
$facet string The selected facet
$q string A string filter for facet values
return array The returned list of possible values

get_tag_listitems() public method

Generate FormUI checkboxes wrapped in listitems for the tag collection. Is used with and without AJAX
public get_tag_listitems ( )

get_tags() public method

Handle GET requests for /admin/tags to display the tags.
public get_tags ( )

post_tags() public method

Handle POST requests for /admin/tags
public post_tags ( )

process_tags() public method

Handles submitted tag forms and processes tag actions
public process_tags ( FormUI $form )
$form FormUI The tag form