Questo crea l'oggetto campo di modulo
__construct ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) RocksFormField __ construct (string $ name, string $ type, string $ isRequired, [string $ formName = null], [string $ default = null])
- $name : this is the name of the form field stringa $ nome: questo è il nome del campo del form
- $type : this is the type of the form field string $ type: questo è il tipo del campo di modulo
- $isRequired : this indicates if the field is a required field stringa $ isRequired: indica se il campo è un campo obbligatorio
- $formName : this is the form name that field is part of. stringa $ formName: è questo il nome del modulo che il campo fa parte. Questo non è necessaria se vi è solo una forma
- $default : this is the default value of the field if it is left empty. $ stringa di default: questo è il valore predefinito del campo, se viene lasciato vuoto.
AddRegex ( AddRegex vuoto ( , $ Regex, ) $ Message)
Questo modo si controlla che tutto campo del modulo di passare tutti i test di validazione a livello di campo.
Validate () annullare Validate ()
Realizzazione di:
- ) RocksIValidatable :: Validate (
__get ( __ vuoto get ( ) $ Name)
__set ( void __ set ( , $ Var, ) $ VarValue)
__toString () vuoto __ toString ()