Your PHP skills tool showed me were I needed to improve and how to do it! 您的PHP技能的工具,表明我是我需要改进,如何做到这一点!”
汤姆

RocksFormField类

描述

实现接口:

  • RocksIValidatable

这个类表示一个表单字段和处理验证和价值处理。 这是扇贝内部使用。

  • string $name: the name of the field 属性:字符串名称:字段名称
  • string $type: the type of the field 属性:字符串类型:字段类型
  • bool $isRequired: if the field is required 财产:布尔元isRequired的:如果字段是必需的
  • mixed $value: the value of the form field 属性:混合$值:表单字段的值
  • bool $isSet: indicates if the form field is set. 属性:布尔元使用isset:表示如果表单字段设置。 这是usally内部使用
  • string $formName: the form name of the form field. 属性:字符串$ formName:表单域的表单名称。 这是usally内部使用
  • Dominic Skinner 作者:多米尼克·斯金纳
  • 0.2.1 版本:0.2.1

)位于/ RocksFormField.php(第19行)

方法摘要
__construct ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) RocksFormField __construct字符串 $名称字符串 $类型字符串 $ isRequired,[ 字符串 $ formName = NULL],[ 字符串 $默认 = NULL)
AddRegex ( 无效 AddRegex , 美元的regex ) $消息
Validate () 无效 验证 ()
__get ( 无效 __get ) $名
__set ( 无效 __set , $ var的 ) $ varValue)
__toString () 无效 __toString ()
方法
(line 37 ) 构造_建设 (37行)

这将创建表单域对象

  • public 访问:公众
__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. 字符串 $默认 :这是字段的默认值,如果它是空的。
(line 97 ) AddRegex(97行)
  • public 访问:公众
AddRegex ( 无效 AddRegex( , 美元的regex ) $消息
  • 美元的regex
  • 美元消息
(line 71 ) 验证 (第71行)

这将检查所有的表单域,通过所有字段级验证测试。

  • public 访问:公众
Validate () void 验证 ()

实施:
验证RocksIValidatable ::()
(line 112 ) __get(112行)
  • public 访问:公众
__get ( 函数void __得到 ) $名
  • 元名称
(line 122 ) __set(122行)
  • public 访问:公众
__set ( 函数void __集 , $ var的 ) $ varValue)
  • $ var的
  • 美元varValue
(line 131 ) __toString(131线)
  • public 访问:公众
__toString () 无效 的__toString()

已提供任何意见。
安全形象

书面由多米尼克·斯金纳
最后更新:2011年10月25日十六点00分38秒