__construct () RocksForm __construct ()
Aggiunge un pari a confronto. Questo verifica che i valori dei campi del modulo sono uguali se non sono il messaggio viene visualizzato.
AddEqualToComparison ( string $itemOne , string $itemTwo , string $message ) vuoto AddEqualToComparison (string $ itemOne, string $ itemTwo, string $ messaggio)
- $itemOne : this is the name of the first field to compare stringa $ itemOne: questo è il nome del primo campo da confrontare
- $itemTwo : this is the name of the second field to compare stringa $ itemTwo: questo è il nome del secondo campo da confrontare
- $message : this is message that is displayed if the fields are not equal stringa $ messaggio: questo è il messaggio che viene visualizzato se i campi non sono uguali
Questo metodo aggiunge un altro campo al form. È necessario aggiungere un campo alla forma per restituire il valore in array associativo, nonché per eseguire valudation su di esso.
AddField ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) vuoto AddField (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 stringa $ tipo: questo è il tipo di campo 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 fa parte del campo. Questo non è necessario se c'è una sola forma
- $default : this is the default value of the field if it is left empty. stringa $ default: questo è il valore predefinito del campo, se è lasciato vuoto.
Questo aggiunge un identificatore univoco formare questo indica che un campo del modulo appartiene solo a una delle forme sulla pagina. Nota avete solo bisogno di utilizzare questo metodo se ci sono più di un modulo su una pagina.
AddFormIdentifier ( string $fieldName , string $formName ) vuoto AddFormIdentifier (string $ fieldName, string $ formName)
- $fieldName : this is the field name that uniquely identifies the form stringa $ fieldName: questo è il nome del campo che identifica in modo univoco la forma
- $formName : this is the form name that you want to assign to the form stringa $ formName: è questo il nome del modulo che si desidera assegnare alla forma
Aggiunge una voce di uno è più grande di due item di confronto. Questo verifica che i valori della voce di campo modulo uno è maggiore di due item se non sono allora il messaggio viene visualizzato.
AddItemOneGreaterThanTwoComparison ( string $itemOne , string $itemTwo , string $message ) vuoto AddItemOneGreaterThanTwoComparison (string $ itemOne, string $ itemTwo, string $ messaggio)
- $itemOne : this is the name of the first field to compare stringa $ itemOne: questo è il nome del primo campo da confrontare
- $itemTwo : this is the name of the second field to compare stringa $ itemTwo: questo è il nome del secondo campo da confrontare
- $message : this is message that is displayed if the validation fails stringa $ messaggio: questo è il messaggio che viene visualizzato se la convalida non riesce
Aggiunge un elemento è inferiore a confronto di due item. Questo verifica che i valori della voce di campo modulo sia inferiore voce di due se non sono allora il messaggio viene visualizzato.
AddItemOneLessThanTwoComparison ( string $itemOne , string $itemTwo , string $message ) vuoto AddItemOneLessThanTwoComparison (string $ itemOne, string $ itemTwo, string $ messaggio)
- $itemOne : this is the name of the first field to compare stringa $ itemOne: questo è il nome del primo campo da confrontare
- $itemTwo : this is the name of the second field to compare stringa $ itemTwo: questo è il nome del secondo campo da confrontare
- $message : this is message that is displayed if the validation fails stringa $ messaggio: questo è il messaggio che viene visualizzato se la convalida non riesce
Aggiunge una non uguale a confronto. Questo verifica che i valori dei campi del modulo non sono uguali se non sono il messaggio viene visualizzato.
AddNotEqualToComparison ( string $itemOne , string $itemTwo , string $message ) vuoto AddNotEqualToComparison (string $ itemOne, string $ itemTwo, string $ messaggio)
- $itemOne : this is the name of the first field to compare stringa $ itemOne: questo è il nome del primo campo da confrontare
- $itemTwo : this is the name of the second field to compare stringa $ itemTwo: questo è il nome del secondo campo da confrontare
- $message : this is message that is displayed if the fields are equal stringa $ messaggio: questo è il messaggio che viene visualizzato se i campi sono uguali
Questo restituisce un array associativo con il nome del campo come chiave e il valore del campo come valore.
GetAssociativeArrayData () vuoto GetAssociativeArrayData ()
Questo restituisce la forma che ha appena eseguito il postback.
GetCurrentForm () vuoto GetCurrentForm ()
Questo restituisce una serie di messaggi di errore. Questo assicura anche che il modulo è stato convalidato, se questo si chiama.
GetErrors () vuoto GetErrors ()
Questo metodo restituisce un campo in base al suo nome
- $name : this is the name of the form field to return stringa $ nome: questo è il nome del campo form per tornare
Questo imposta il tipo di modulo
SetFormType ( string $type ) vuoto SetFormType (string $ type)
- $type : this sets the type of form RocksPost or RocksGet string $ type: questo imposta il tipo di RocksPost forma o RocksGet
Questo controlla che tutti i campi modulo passare tutti i test di validazione.
Validate () void validate ()