這將創建表單域對象
__construct ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) RocksFormField _結構 ( 字符串 $名稱 , 字符串 $類型 , 字符串 $ 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:這是那場部分表單的名稱。 這不是必要的,如果只有一個形式
- $default : this is the default value of the field if it is left empty. 字符串 $默認 :這是字段的默認值,如果它是空的。
AddRegex ( 無效 AddRegex( , 美元的regex ) $消息 )
這將檢查所有的表單域,通過所有字段級驗證測試。
Validate () void 驗證 ()
實施:
- 驗證RocksIValidatable ::()
__get ( 函數void __得到 ( ) $名 )
__set ( 函數void __集 ( , $ var的 , ) $ varValue)
__toString () 無效 的__toString()