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

Public Member Functions

 HandlerValidatorSubmissionComment (&$handler, $commentId)
 
 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 
)

Constructor.

Parameters
$handlerHandler the associated form
$rolesarray of role id's
$allbool flag for whether all roles must exist or just 1

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

References HandlerValidator\$handler.

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 35 of file HandlerValidatorSubmissionComment.inc.php.

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


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