PHP Класс Habari\AdminPostsHandler

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

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

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

Приватные методы

Метод Описание
fetch_posts ( $params = [] ) Assign values needed to display the posts page to the theme based on handlervars and parameters

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

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

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

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

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

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

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

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

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

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

Used to delete posts.
public ajax_update_posts ( $handler_vars )

filter_facets() публичный статический Метод

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
Результат array The array of facets

filter_facetvalues() публичный статический Метод

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
Результат array The returned list of possible values

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

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

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

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

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

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

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

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