Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
FormValidatorListbuilder Class Reference
Inheritance diagram for FormValidatorListbuilder:
FormValidator

Public Member Functions

 FormValidatorListbuilder (&$form, $field, $message)
 
 isValid ()
 
- Public Member Functions inherited from FormValidator
 FormValidator (&$form, $field, $type, $message, $validator=null)
 
 getField ()
 
 getFieldValue ()
 
getForm ()
 
 getMessage ()
 
 getType ()
 
getValidator ()
 
 isEmptyAndOptional ()
 
 isValid ()
 

Additional Inherited Members

- Public Attributes inherited from FormValidator
 $_field
 
 $_form
 
 $_message
 
 $_type
 
 $_validator
 

Detailed Description

Form validation check that checks if the JSON value submitted unpacks into something that contains at least one valid user id.

Definition at line 19 of file FormValidatorListbuilder.inc.php.

Member Function Documentation

FormValidatorListbuilder::FormValidatorListbuilder ( $form,
  $field,
  $message 
)

Constructor.

Parameters
$formForm the associated form
$fieldstring the name of the associated field
$messagestring the error message for validation failures (i18n key)

Definition at line 31 of file FormValidatorListbuilder.inc.php.

FormValidatorListbuilder::isValid ( )

Check the number of lisbuilder rows. If it's equal to 0, return false.

See Also
FormValidator::isValid()
Returns
boolean

Definition at line 44 of file FormValidatorListbuilder.inc.php.

References FormValidator\getFieldValue(), and ListbuilderHandler\unpack().


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