Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
HandlerValidatorSubmissionComment Class Reference
Inheritance diagram for HandlerValidatorSubmissionComment:
HandlerValidator

Public Member Functions

 HandlerValidatorSubmissionComment (&$handler, $commentId, $user=null)
 
 isValid ()
 
- Public Member Functions inherited from HandlerValidator
 _setHandler (&$handler)
 
 HandlerValidator (&$handler, $redirectToLogin=false, $message=null, $additionalArgs=array())
 
 isValid ()
 

Additional Inherited Members

- Public Attributes inherited from HandlerValidator
 $additionalArgs
 
 $handler
 
 $message
 
 $redirectToLogin
 

Detailed Description

Class to validate that a comment exists (by id) and that the current user has access.

Definition at line 17 of file HandlerValidatorSubmissionComment.inc.php.

Member Function Documentation

HandlerValidatorSubmissionComment::HandlerValidatorSubmissionComment ( $handler,
  $commentId,
  $user = null 
)

Constructor.

Parameters
$handlerHandler the associated form
$commentIdint
$userobject Optional user

Definition at line 27 of file HandlerValidatorSubmissionComment.inc.php.

References HandlerValidator\$handler, and PKPRequest\getUser().

HandlerValidatorSubmissionComment::isValid ( )

Check if field value is valid. Value is valid if it is empty and optional or validated by user-supplied function.

Returns
boolean

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

References HandlerValidator\$handler, DAORegistry\getDAO(), PKPRequest\getRequestedPage(), and PKPRequest\redirect().


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