PHP Class Habari\AdminTagsHandler

Inheritance: extends AdminHandler
Afficher le fichier Open project: habari/system

Méthodes publiques

Méthode 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 méthode

public __construct ( )

ajax_tags() public méthode

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

filter_facets() public static méthode

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
Résultat array The array of facets

filter_facetvalues() public static méthode

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
Résultat array The returned list of possible values

get_tag_listitems() public méthode

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

get_tags() public méthode

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

post_tags() public méthode

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

process_tags() public méthode

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