__construct () RocksForm __construct()
比較に等しいが追加されます。 これは、それらがその後のメッセージが表示されていない場合、フォームフィールドの値が等しいことをチェックします。
AddEqualToComparison ( string $itemOne , string $itemTwo , string $message ) ボイド AddEqualToComparison( 文字列 $ itemOne、 文字列 $ itemTwo、 文字列 $メッセージ )
- $itemOne : this is the name of the first field to compare 文字列 $ itemOne:これは、比較する最初のフィールドの名前です。
- $itemTwo : this is the name of the second field to compare 文字列 $ itemTwo:これは、比較する2番目のフィールドの名前です。
- $message : this is message that is displayed if the fields are not equal 文字列 $メッセージ :これはフィールドが等しくない場合に表示されるメッセージです。
このメソッドは、フォームに別のフィールドを追加します。 あなたはそれにvaludationを実行するだけでなく、連想配列の値を返すようにフォームにフィールドを追加する必要があります。
AddField ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) ボイド AddField( 文字列 $名 、 文字列 $型 、 文字列 $ IsRequiredが 、[ 文字列 $フォーム名 = NULL]、[ 文字列 $デフォルト = NULL])
- $name : this is the name of the form field 文字列 $名 :これは、フォームフィールドの名前です。
- $type : this is the type of the form field 文字列 $型 :これは、フォームフィールドの種類です。
- $isRequired : this indicates if the field is a required field 文字列 $ IsRequiredが :フィールドが必須フィールドである場合、これは示しています
- $formName : this is the form name that field is part of. 文字列 $フォーム名 :これは、フィールドが属するフォームの名前です。 1つのフォームのみが存在する場合、これは不要です
- $default : this is the default value of the field if it is left empty. 文字列 $デフォルト :それが空のままになっている場合、このフィールドのデフォルト値です。
これは、これはフォームのフィールドは、ページ上のフォームのいずれかに属することを示すユニークなフォームの識別子を追加します。 あなただけのページ上に複数のフォームがある場合、このメソッドを使用する必要がある注意してください。
AddFormIdentifier ( string $fieldName , string $formName ) ボイド AddFormIdentifier( 文字列 $ fieldNameを 、 文字列 $フォーム名 )
- $fieldName : this is the field name that uniquely identifies the form 文字列 $ fieldNameに :これは一意にフォームを識別するフィールド名です。
- $formName : this is the form name that you want to assign to the form 文字列 $フォーム名 :これは、フォームに割り当てることがフォームの名前です。
いずれかの項目つの比較を超えている項目を追加します。 そうでない場合、フォームフィールドの項目1の値は項目2より大きいこと、このチェックは、メッセージが表示されます。
AddItemOneGreaterThanTwoComparison ( string $itemOne , string $itemTwo , string $message ) ボイド AddItemOneGreaterThanTwoComparison( 文字列 $ itemOne、 文字列 $ itemTwo、 文字列 $メッセージ )
- $itemOne : this is the name of the first field to compare 文字列 $ itemOne:これは、比較する最初のフィールドの名前です。
- $itemTwo : this is the name of the second field to compare 文字列 $ itemTwo:これは、比較する2番目のフィールドの名前です。
- $message : this is message that is displayed if the validation fails 文字列 $メッセージ :これは、検証が失敗した場合に表示されるメッセージです。
いずれかの項目つの比較より小さい項目を追加します。 そうでない場合、フォームフィールドの項目1の値は、項目2未満であることを、このチェックは、メッセージが表示されます。
AddItemOneLessThanTwoComparison ( string $itemOne , string $itemTwo , string $message ) ボイド AddItemOneLessThanTwoComparison( 文字列 $ itemOne、 文字列 $ itemTwo、 文字列 $メッセージ )
- $itemOne : this is the name of the first field to compare 文字列 $ itemOne:これは、比較する最初のフィールドの名前です。
- $itemTwo : this is the name of the second field to compare 文字列 $ itemTwo:これは、比較する2番目のフィールドの名前です。
- $message : this is message that is displayed if the validation fails 文字列 $メッセージ :これは、検証が失敗した場合に表示されるメッセージです。
比較に等しくないを追加します。 彼らはその後でない場合、このチェックは、フォームフィールドの値が同じでないことを示すメッセージが表示されます。
AddNotEqualToComparison ( string $itemOne , string $itemTwo , string $message ) ボイド AddNotEqualToComparison( 文字列 $ itemOne、 文字列 $ itemTwo、 文字列 $メッセージ )
- $itemOne : this is the name of the first field to compare 文字列 $ itemOne:これは、比較する最初のフィールドの名前です。
- $itemTwo : this is the name of the second field to compare 文字列 $ itemTwo:これは、比較する2番目のフィールドの名前です。
- $message : this is message that is displayed if the fields are equal 文字列 $メッセージ :これはフィールドが等しい場合に表示されるメッセージです。
これは、キーと値としてフィールドの値としてフィールド名を持つ連想配列を返します。
GetAssociativeArrayData () ボイド GetAssociativeArrayData()
これは、ちょうど戻って掲載しているフォームを返します。
GetCurrentForm () ボイド GetCurrentForm()
これは、エラーメッセージの配列を返します。 これはまたこれが呼び出されると、フォームが検証されていることを保証します。
GetErrors () GetErrors 無効 ()
この方法では、その名前に基づいてフィールドを返します。
- $name : this is the name of the form field to return 文字列 $名 :これは返すようにフォームフィールドの名前です。
これはフォームのタイプを設定します。
SetFormType ( string $type ) ボイド SetFormType( 文字列 $タイプ )
- $type : this sets the type of form RocksPost or RocksGet 文字列 $型 :これは、フォームのRocksPostまたはRocksGetの種類を設定します。
このチェックはすべてのフォームフィールドは、すべての検証テストに合格すること。
Validate () 検証 が無効になる ()