PHP Класс Habari\AdminCommentsHandler

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

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

Метод Описание
ajax_comments ( ) Handles AJAX requests from the manage comments page.
ajax_update_comment ( $handler_vars ) Handles AJAX requests to update comments, comment moderation
comment_access_filter ( object $comments, string $access ) : a A helper function for fetch_comments() Filters a list of comments by ACL access
fetch_comments ( $params = [] ) Retrieve comments.
form_comment ( $comment, $actions ) : FormUI Construct a form for a comment.
get_comment ( $update = false ) Handles GET requests for an individual comment.
get_comments ( ) Handles GET requests for the comments page.
post_comment ( ) Handles POST requests for an individual comment.
post_comments ( ) Handles the submission of the comment moderation form.

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

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

Handles AJAX requests from the manage comments page.
public ajax_comments ( )

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

Handles AJAX requests to update comments, comment moderation
public ajax_update_comment ( $handler_vars )

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

A helper function for fetch_comments() Filters a list of comments by ACL access
public comment_access_filter ( object $comments, string $access ) : a
$comments object an array of Comment objects
$access string the access type to check for
Результат a filtered array of Comment objects.

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

Retrieve comments.
public fetch_comments ( $params = [] )

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

Construct a form for a comment.
public form_comment ( $comment, $actions ) : FormUI
Результат FormUI The comment's form.

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

Handles GET requests for an individual comment.
public get_comment ( $update = false )

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

Handles GET requests for the comments page.
public get_comments ( )

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

Handles POST requests for an individual comment.
public post_comment ( )

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

Handles the submission of the comment moderation form.
public post_comments ( )