이것은 양식 필드 개체를 만듭니다
__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 ( , $ 정규식, ) 메시지 $)
모든 폼 필드가 모든 필드 수준 유효성 검사 테스트를 통과 것을 확인합니다.
Validate () 확인을 무효화 ()
의 구현 :
- RocksIValidatable :: 유효성 검사 ()
__get ( 공극 __ 구하기 ( ) 이름 $)
__set ( 공극 __ 세트 ( , 은 $ var, ) $ varValue)
__toString () 공극 __의 toString ()