phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
FieldValidation Class Reference
+ Inheritance diagram for FieldValidation:

Public Member Functions

 __construct ($identifier)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 getRules ()
 
 addRule ($type, $prompt=NULL, $value=NULL)
 
 jsonSerialize ()
 
 setDepends ($depends)
 
 setOptional ($optional)
 
 compile (JsUtils $js)
 

Protected Attributes

 $identifier
 
 $rules
 
 $customRules
 
 $hasCustomRules = false
 
 $depends
 
 $optional
 

Detailed Description

Author
jc
Version
1.001 Generates a JSON field validator

Definition at line 13 of file FieldValidation.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $identifier)

Definition at line 43 of file FieldValidation.php.

Member Function Documentation

◆ addRule()

addRule (   $type,
  $prompt = NULL,
  $value = NULL 
)
Parameters
string | Rule | array$type
string$prompt
string$value
Returns
Rule

Definition at line 68 of file FieldValidation.php.

◆ compile()

compile ( JsUtils  $js)

Definition at line 112 of file FieldValidation.php.

◆ getIdentifier()

getIdentifier ( )

Definition at line 48 of file FieldValidation.php.

◆ getRules()

getRules ( )

Definition at line 57 of file FieldValidation.php.

◆ jsonSerialize()

jsonSerialize ( )

Definition at line 88 of file FieldValidation.php.

◆ setDepends()

setDepends (   $depends)

Definition at line 102 of file FieldValidation.php.

◆ setIdentifier()

setIdentifier (   $identifier)

Definition at line 52 of file FieldValidation.php.

◆ setOptional()

setOptional (   $optional)

Definition at line 107 of file FieldValidation.php.

Field Documentation

◆ $customRules

$customRules
protected

Definition at line 31 of file FieldValidation.php.

◆ $depends

$depends
protected

Definition at line 39 of file FieldValidation.php.

◆ $hasCustomRules

$hasCustomRules = false
protected

Definition at line 33 of file FieldValidation.php.

◆ $identifier

$identifier
protected

Definition at line 19 of file FieldValidation.php.

◆ $optional

$optional
protected

Definition at line 41 of file FieldValidation.php.

◆ $rules

$rules
protected

Definition at line 25 of file FieldValidation.php.


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