Open Journal Systems  2.4.4
 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

 $article
 
 $issue
 

Detailed Description

Handle requests for user comments.

Definition at line 21 of file CommentHandler.inc.php.

Member Function Documentation

CommentHandler::add (   $args,
  $request 
)

Add a comment

Parameters
$argsarray
$requestRequest

Definition at line 84 of file CommentHandler.inc.php.

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

CommentHandler::CommentHandler ( )

Constructor

Definition at line 31 of file CommentHandler.inc.php.

CommentHandler::delete (   $args,
$request 
)

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

Parameters
$requestPKPRequest

Definition at line 153 of file CommentHandler.inc.php.

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

CommentHandler::setupTemplate ( $request,
  $article,
  $galleyId,
  $comment = null 
)

Set up the comment template.

Parameters
$requestPKPRequest
$articleArticle
$galleyIdint
$commentComment

Definition at line 228 of file CommentHandler.inc.php.

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

Referenced by add(), and view().

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

View a comment

Parameters
$argsarray
$requestobject

Definition at line 40 of file CommentHandler.inc.php.

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

Member Data Documentation

CommentHandler::$article

article associated with this request

Definition at line 26 of file CommentHandler.inc.php.

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

CommentHandler::$issue

issue associated with this request

Definition at line 23 of file CommentHandler.inc.php.

Referenced by validate().


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