HandlerValidatorSubmissionComment Class Reference

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

Inheritance diagram for HandlerValidatorSubmissionComment:

HandlerValidator List of all members.

Public Member Functions

 HandlerValidatorSubmissionComment (&$handler, $commentId, &$user=null)
 isValid ()

Public Attributes

 $commentId
 $user

Detailed Description

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.


Member Function Documentation

HandlerValidatorSubmissionComment.HandlerValidatorSubmissionComment ( &$  handler,
commentId,
&$  user = null 
)

Constructor.

Parameters:
$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.

References $commentId, and $user.

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

References $user, and Request.redirect().


The documentation for this class was generated from the following file:
Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7