I regularly use your site to answer my PHP problems! "Io uso regolarmente il vostro sito per rispondere a miei problemi PHP!"
Opaco

RocksFormField Class

Descrizione

Implementa le interfacce:

  • RocksIValidatable

Questa classe rappresenta un campo di forma e gestisce la movimentazione di convalida e valore. Questo è usualy utilizzato internamente.

  • string $name: the name of the field proprietà: string $ name: il nome del campo
  • string $type: the type of the field proprietà: string $ type: il tipo del campo
  • bool $isRequired: if the field is required Proprietà: bool $ isRequired: se il campo è obbligatorio!
  • mixed $value: the value of the form field proprietà: mixed $ valore: il valore del campo modulo
  • bool $isSet: indicates if the form field is set. Proprietà: $ bool isset: indica se il campo modulo è impostato. Questo viene utilizzato internamente usally
  • string $formName: the form name of the form field. proprietà: stringa $ formName: il nome del modulo del campo del form. Questo viene utilizzato internamente usally
  • Dominic Skinner autore: Dominic Skinner
  • 0.2.1 Versione: 0.2.1

) Situato in / RocksFormField.php (linea 19)

Metodo Summary
__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])
AddRegex ( vuoto AddRegex ( , $ Regex, ) $ Message)
Validate () annullare Validate ()
__get ( vuoto __get ( ) $ Name)
__set ( annullare __set ( , $ Var, ) $ VarValue)
__toString () vuoto __toString ()
Metodi
(line 37 ) Costruttore __ construct (linea 37)

Questo crea l'oggetto campo di modulo

  • public accesso: public
__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.
(line 97 ) AddRegex (linea 97)
  • public accesso: public
AddRegex ( AddRegex vuoto ( , $ Regex, ) $ Message)
  • $ Regex
  • $ Message
(line 71 ) Validate (linea 71)

Questo modo si controlla che tutto campo del modulo di passare tutti i test di validazione a livello di campo.

  • public accesso: public
Validate () annullare Validate ()

Realizzazione di:
) RocksIValidatable :: Validate (
(line 112 ) __get (linea 112)
  • public accesso: public
__get ( __ vuoto get ( ) $ Name)
  • $ Name
(line 122 ) __set (linea 122)
  • public accesso: public
__set ( void __ set ( , $ Var, ) $ VarValue)
  • $ Var
  • $ VarValue
(line 131 ) __toString (linea 131)
  • public accesso: public
__toString () vuoto __ toString ()

Nessun commento è stato fornito.
security image

Scritto da Dominic Skinner
Ultimo aggiornamento: 2011/10/25 16:00:38