Your open source Rocks PHP Library has really made developing PHP easier! "당신의 오픈 소스 PHP는 록스 도서관은 정말 쉽게 PHP를 개발했다!"
앨런

RocksFormField 클래스

설명

인터페이스를 구현합니다 :

  • RocksIValidatable

이 클래스는 폼 필드를 나타내는 및 검증과 가치 취급을 처리합니다. 이것은 usualy 내부적으로 사용됩니다.

  • string $name: the name of the field 재산 : 문자열 $ 이름 : 필드의 이름
  • string $type: the type of the field 재산 : 문자열 $ 유형 : 필드의 유형
  • bool $isRequired: if the field is required 재산 : BOOL isRequired $ : 필드가 필요한 경우
  • mixed $value: the value of the form field 재산 : 혼합 $ 값 : 폼 필드의 값을
  • bool $isSet: indicates if the form field is set. 재산 : BOOL $ 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 ( , $ 정규식, ) 메시지 $)
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 ( , $ 정규식, ) 메시지 $)
  • $ 정규식
  • $ 메시지
(line 71 ) 유효성 검사 (라인 71)

모든 폼 필드가 모든 필드 수준 유효성 검사 테스트를 통과 것을 확인합니다.

  • public 접근 : 공개
Validate () 확인을 무효화 ()

의 구현 :
RocksIValidatable :: 유효성 검사 ()
(line 112 ) __get (라인 112)
  • public 접근 : 공개
__get ( 공극 __ 구하기 ( ) 이름 $)
  • $ 이름
(line 122 ) __set (라인 122)
  • public 접근 : 공개
__set ( 공극 __ 세트 ( , 은 $ var, ) $ varValue)
  • $ VAR
  • $ varValue
(line 131 ) __toString (라인 131)
  • public 접근 : 공개
__toString () 공극 __의 toString ()

댓글이 제공되지 않았습니다 없습니다.
보안 이미지

도미닉 스키너 글
최근 업데이트 : 2011년 10월 25일 16시 0분 38초를