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

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

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,
  $user = null 


$handlerHandler the associated form
$userobject Optional user

Definition at line 27 of file

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.


Definition at line 40 of file

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

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