Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
CommentHandler Class Reference
Inheritance diagram for CommentHandler:
Handler PKPHandler

Public Member Functions

 add ($args, $request)
 CommentHandler ()
 delete ($args, &$request)
 setupTemplate (&$request, $article, $galleyId, $comment=null)
 validate (&$request, $articleId)
 view ($args, &$request)
- Public Member Functions inherited from PKPHandler
 addCheck (&$handlerValidator)
 addPolicy (&$authorizationPolicy, $addToTop=false)
 addRoleAssignment ($roleIds, $operations)
 authorize (&$request, &$args, $roleAssignments)
getAuthorizedContext ()
getAuthorizedContextObject ($assocType)
getDispatcher ()
 getId ()
 getLastAuthorizationMessage ()
 getLoginExemptions ()
getRangeInfo ($rangeName, $contextData=null)
 getRoleAssignment ($roleId)
 getRoleAssignments ()
 hashPageContext ($contextData=array())
 index ()
 initialize (&$request, $args=null)
 PKPHandler ()
 requireSSL ()
 setDispatcher (&$dispatcher)
 setId ($id)
 validate ($requiredContexts=null, $request=null)

Public Attributes


Detailed Description

Handle requests for user comments.

Definition at line 21 of file

Member Function Documentation

CommentHandler::add (   $args,

Add a comment


Definition at line 84 of file

References $article, DAORegistry\getDAO(), Validation\redirectLogin(), setupTemplate(), and validate().

CommentHandler::CommentHandler ( )


Definition at line 31 of file

CommentHandler::delete (   $args,

Delete the specified comment and all its children. $args array


Definition at line 153 of file

References DAORegistry\getDAO(), and validate().

CommentHandler::setupTemplate ( $request,
  $comment = null 

Set up the comment template.


Definition at line 228 of file

References $article, AppLocale\requireComponents(), and String\stripUnsafeHtml().

Referenced by add(), and view().

CommentHandler::validate ( $request,
CommentHandler::view (   $args,

View a comment


Definition at line 40 of file

References $article, DAORegistry\getDAO(), setupTemplate(), and validate().

Member Data Documentation


article associated with this request

Definition at line 26 of file

Referenced by add(), setupTemplate(), validate(), and view().


issue associated with this request

Definition at line 23 of file

Referenced by validate().

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