Class to validate that a comment exists (by id) and that the current user has access. More...
Public Member Functions | |
| HandlerValidatorSubmissionComment (&$handler, $commentId, &$user=null) | |
| isValid () | |
Class to validate that a comment exists (by id) and that the current user has access.
Definition at line 16 of file HandlerValidatorSubmissionComment.inc.php.
| HandlerValidatorSubmissionComment.HandlerValidatorSubmissionComment | ( | &$ | handler, | |
| $ | commentId, | |||
| &$ | user = null | |||
| ) |
Constructor.
| $handler | Handler the associated form | |
| $roles | array of role id's | |
| $all | bool flag for whether all roles must exist or just 1 |
Definition at line 27 of file HandlerValidatorSubmissionComment.inc.php.
| 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 42 of file HandlerValidatorSubmissionComment.inc.php.
References Request.redirect().
1.7.1