Your Developer Exam showed me just how much there is to PHP. 您的開發人員考試表明我只是有多少是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秒