Isso cria o objeto campo de formulário
__construct ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) RocksFormField __ construct (string $ nome, tipo string $, string $ IsRequired, [string $ formName = null], [string padrão $ = null])
- $name : this is the name of the form field string $ nome: este é o nome do campo de formulário
- $type : this is the type of the form field tipo string $: este é o tipo do campo de formulário
- $isRequired : this indicates if the field is a required field string $ IsRequired: indica se o campo é um campo obrigatório
- $formName : this is the form name that field is part of. string $ formName: este é o nome do formulário que o campo faz parte. Isto não é necessário, se existir apenas uma forma
- $default : this is the default value of the field if it is left empty. padrão string $: este é o valor padrão do campo se for deixado vazio.
AddRegex ( AddRegex vazio ( , $ Regex, ) $ Mensagem)
Isso verifica que todos os campo de formulário passam todos os testes de validação de campo de nível.
Validate () anular Validate ()
Implementação de:
- ) RocksIValidatable :: Validate (
__get ( void __ get ( ) $ Nome)
__set ( __ set (void , $ Var, ) $ VarValue)
__toString () void __ toString ()