PHP Class Habari\AdminPostsHandler

Inheritance: extends AdminHandler
Show file Open project: habari/system

Public Methods

Method Description
ajax_media ( $handler_vars ) Handles AJAX requests from media silos.
ajax_media_panel ( $handler_vars ) Handles AJAX requests from media panels.
ajax_media_upload ( $handler_vars ) Handles AJAX upload requests from media panels.
ajax_posts ( ) Handles AJAX requests from the manage posts page.
ajax_update_posts ( $handler_vars ) Handles AJAX from /manage/posts.
filter_facets ( array $facets ) : array Plugin hook filter for the facet list
filter_facetvalues ( array $other_values, string $facet, string $q ) : array Plugin hook filter for the values of a faceted search
get_posts ( ) Handles GET requests to /admin/posts.
get_publish ( $template = 'publish' ) Handles GET requests of the publish page.
post_posts ( ) Handles POST values from /manage/posts.
post_publish ( ) Handles POST requests from the publish page.

Private Methods

Method Description
fetch_posts ( $params = [] ) Assign values needed to display the posts page to the theme based on handlervars and parameters

Method Details

ajax_media() public method

Handles AJAX requests from media silos.
public ajax_media ( $handler_vars )

ajax_media_panel() public method

Handles AJAX requests from media panels.
public ajax_media_panel ( $handler_vars )

ajax_media_upload() public method

Handles AJAX upload requests from media panels.
public ajax_media_upload ( $handler_vars )

ajax_posts() public method

Handles AJAX requests from the manage posts page.
public ajax_posts ( )

ajax_update_posts() public method

Used to delete posts.
public ajax_update_posts ( $handler_vars )

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 $other_values, string $facet, string $q ) : array
$other_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_posts() public method

Handles GET requests to /admin/posts.
public get_posts ( )

get_publish() public method

Handles GET requests of the publish page.
public get_publish ( $template = 'publish' )

post_posts() public method

Used to control what content to show / manage.
public post_posts ( )

post_publish() public method

Handles POST requests from the publish page.
public post_publish ( )