Public Member Functions

AdminCommentsHandler Class Reference

Inheritance diagram for AdminCommentsHandler:
Collaboration diagram for AdminCommentsHandler:

List of all members.

Public Member Functions

 form_comment ($comment, $actions)
 get_comment ($update=false)
 post_comment ()
 get_comments ()
 post_comments ()
 fetch_comments ($params=array())
 comment_access_filter ($comments, $access)
 ajax_comments ()
 ajax_update_comment ($handler_vars)

Detailed Description

Habari AdminCommentsHandler Class Handles comment-related actions in the admin

Definition at line 14 of file admincommentshandler.php.


Member Function Documentation

AdminCommentsHandler::ajax_comments (  ) 

Handles AJAX requests from the manage comments page.

Definition at line 481 of file admincommentshandler.php.

AdminCommentsHandler::ajax_update_comment ( handler_vars  ) 

Handles AJAX requests to update comments, comment moderation

Definition at line 512 of file admincommentshandler.php.

AdminCommentsHandler::comment_access_filter ( comments,
access 
)

A helper function for fetch_comments() Filters a list of comments by ACL access

Parameters:
object $comments an array of Comment objects
string $access the access type to check for
Returns:
a filtered array of Comment objects.

Definition at line 467 of file admincommentshandler.php.

AdminCommentsHandler::fetch_comments ( params = array()  ) 

Retrieve comments.

Definition at line 227 of file admincommentshandler.php.

Referenced by post_comments().

AdminCommentsHandler::form_comment ( comment,
actions 
)

Construct a form for a comment.

Returns:
FormUI The comment's form.

Definition at line 20 of file admincommentshandler.php.

Referenced by get_comment().

AdminCommentsHandler::get_comment ( update = false  ) 

Handles GET requests for an individual comment.

Definition at line 103 of file admincommentshandler.php.

Referenced by post_comment().

AdminCommentsHandler::get_comments (  ) 

Handles GET requests for the comments page.

Definition at line 183 of file admincommentshandler.php.

AdminCommentsHandler::post_comment (  ) 

Handles POST requests for an individual comment.

Definition at line 175 of file admincommentshandler.php.

AdminCommentsHandler::post_comments (  ) 

Handles the submission of the comment moderation form.

Todo:
Separate delete from "delete until purge"

Definition at line 192 of file admincommentshandler.php.

Referenced by get_comments().


The documentation for this class was generated from the following file: