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

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

Detailed Description

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

Definition at line 17 of file

Member Function Documentation

HandlerValidatorSubmissionComment::HandlerValidatorSubmissionComment ( $handler,


$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

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.


Definition at line 35 of file

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

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