__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( 文字列 $ nameは、 文字列 $)isRequired デフォルトはnull =には、[ 文字列を $ formName [ 文字列を $ = nullの ]、[
- $name : this is the name of the form field 文字列 $ nameには :このフィールドの名前ですフォーム
- $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. 文字列 $ formName:これはのれているフォーム名は一部であるフィールドには、。 れているフォーム1つだけがこの場合ではないが必要
- $default : this is the default value of the field if it is left empty. デフォルト値の空がが残っている場合のフィールドこれは文字列: デフォルト では $。
これは、フォームのフィールドは、1つのページ上のフォームに属していることを示しますユニークな形の識別子を追加します。 あなたはそこだけしている場合、このメソッドを使用する必要が注意してくださいページに1つ以上の形式です。
AddFormIdentifier ( string $fieldName , string $formName ) 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 文字列 $ formName:これは、フォームに割り当てることですしたい場合は、フォームの名前は
アイテム1つを追加アイテム2つの比較を超えています。 そのフォームフィールドの値のいずれかの項目これは、チェックがより大きい項目の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つの比較未満です。 そのフォームフィールドの値のいずれかの項目これは、チェックは以下の項目の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 ) void 型 SetFormType( 文字列 $)
- $type : this sets the type of form RocksPost or RocksGet 文字列 $タイプ :これはRocksGetタイプの設定フォームRocksPostまたは
これは、チェックがすべてのフォームフィールドはすべての検証テストに合格。
Validate () ( 検証を 無効 )