PHP Class Habari\AdminCommentsHandler

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

Public Methods

Method Description
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.

Method Details

ajax_comments() public method

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

ajax_update_comment() public method

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

comment_access_filter() public method

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
return a filtered array of Comment objects.

fetch_comments() public method

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

form_comment() public method

Construct a form for a comment.
public form_comment ( $comment, $actions ) : FormUI
return FormUI The comment's form.

get_comment() public method

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

get_comments() public method

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

post_comment() public method

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

post_comments() public method

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