これは、フォームフィールドオブジェクトを作成します。
__construct ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) RocksFormField _構造 ( 文字列 $ nameは 、 文字列 $タイプ 、 文字列 $ IsRequiredは 、[ 文字列 $ formnameを = 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. 文字列 $ formnameを :これはフィールドの一部であることをフォーム名です。 1つのフォームのみが存在する場合、これは必要ありません
- $default : this is the default value of the field if it is left empty. 文字列 $デフォルト :それは空のままにされている場合は、このフィールドのデフォルト値です。
AddRegex ( ボイド AddRegex( , $ regexに 、 ) $メッセージ )
すべてのフォームフィールドは、すべてのフィールドレベルの検証テストに合格することを確認するためです。
Validate () validate()を無効
の実装:
- RocksIValidatable ::検証()
__get ( ボイド __取得 ( ) $名 )
__set ( ボイド _セット ( , $ varは 、 ) $ varValue)
__toString () ボイド の__toString()