这将创建表单域对象
__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()