__construct () RocksForm의 __의 구조 ()
비교로 동등 더합니다. 그들이없는 경우 양식 필드의 값이 동일한지이 수표는 다음 메시지가 표시됩니다.
AddEqualToComparison ( string $itemOne , string $itemTwo , string $message ) 무효 AddEqualToComparison (문자열 $ itemOne, 문자열 $ itemTwo, 문자열 $ 메세지)
- $itemOne : this is the name of the first field to compare 문자열 $ itemOne : 이것은 비교하는 첫 번째 필드의 이름입니다
- $itemTwo : this is the name of the second field to compare $ itemTwo를 문자열이 비교하는 두번째 필드의 이름입니다
- $message : this is message that is displayed if the fields are not equal $ 메시지를 문자열 필드가 동일하지 않은 경우이 표시되는 메시지입니다
이 방법은 양식에 다른 필드를 추가합니다. 당신은 연관 배열에서뿐만 아니라 그것에 valudation을 수행하는 값을 반환하는 양식 필드를 추가해야합니다.
AddField ( string $name , string $type , string $isRequired , [ string $formName = null ], [ string $default = null ]) 무효 AddField (문자열 $ 이름, 문자열 $ 타입, 문자열 $ 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. 문자열 $ 기본값 : 그것이 비어 남아있는 경우이 필드의 기본값입니다.
이것은이 양식 필드에만 페이지 양식 중 하나에 속한다는 것을 나타냅니다 독특한 형식 식별자를 추가합니다. 당신은 페이지에 하나 이상의 형태가있다면이 방법을 사용해야합니다.
AddFormIdentifier ( string $fieldName , string $formName ) 공극 AddFormIdentifier (문자열 $ fieldName, 문자열 $ formName)
- $fieldName : this is the field name that uniquely identifies the form 문자열 $ fieldName : 이것은 고유의 양식을 식별하는 필드 이름입니다
- $formName : this is the form name that you want to assign to the form 문자열 $ formName : 이것이 당신이 양식에 할당할 양식 이름입니다
한 항목이 비교보다 큰 항목을 추가합니다. 양식 필드 항목 값 중 하나가 그들이 다음 메시지가 표시됩니다되지 않은 경우 항목이보다 큰 것을 확인합니다.
AddItemOneGreaterThanTwoComparison ( string $itemOne , string $itemTwo , string $message ) 무효 AddItemOneGreaterThanTwoComparison (문자열 $ itemOne, 문자열 $ itemTwo, 문자열 $ 메세지)
- $itemOne : this is the name of the first field to compare 문자열 $ itemOne : 이것은 비교하는 첫 번째 필드의 이름입니다
- $itemTwo : this is the name of the second field to compare $ itemTwo를 문자열이 비교하는 두번째 필드의 이름입니다
- $message : this is message that is displayed if the validation fails $ 메시지 문자열이 유효성 검사에 실패할 경우 표시되는 메시지입니다
한 항목이 비교 미만인 항목을 추가합니다. 양식 필드 항목 값 중 하나가 그들이 다음 메시지가 표시됩니다되지 않은 경우 항목 둘을 제외 적은 것을 확인합니다.
AddItemOneLessThanTwoComparison ( string $itemOne , string $itemTwo , string $message ) 무효 AddItemOneLessThanTwoComparison (문자열 $ itemOne, 문자열 $ itemTwo, 문자열 $ 메세지)
- $itemOne : this is the name of the first field to compare 문자열 $ itemOne : 이것은 비교하는 첫 번째 필드의 이름입니다
- $itemTwo : this is the name of the second field to compare $ itemTwo를 문자열이 비교하는 두번째 필드의 이름입니다
- $message : this is message that is displayed if the validation fails $ 메시지 문자열이 유효성 검사에 실패할 경우 표시되는 메시지입니다
이 비교 같지 않음 추가합니다. 이것은 그들이 다음 메시지가 표시됩니다되지 않을 경우 양식 필드의 값이 동일하지 않고있다는 것도 확인합니다.
AddNotEqualToComparison ( string $itemOne , string $itemTwo , string $message ) 무효 AddNotEqualToComparison (문자열 $ itemOne, 문자열 $ itemTwo, 문자열 $ 메세지)
- $itemOne : this is the name of the first field to compare 문자열 $ itemOne : 이것은 비교하는 첫 번째 필드의 이름입니다
- $itemTwo : this is the name of the second field to compare $ itemTwo를 문자열이 비교하는 두번째 필드의 이름입니다
- $message : this is message that is displayed if the fields are equal $ 메시지 문자열이 필드가 동일한 경우 표시되는 메시지입니다
이것은 키와 값으로 필드 값을 같은 필드 이름과 연관 배열을 반환합니다.
GetAssociativeArrayData () 무효 GetAssociativeArrayData ()
이것은 단지 다시 올렸습니다 양식을 반환합니다.
GetCurrentForm () 공극 GetCurrentForm ()
이 오류 메시지의 배열을 반환합니다. 이것은 또한 이것이 호출되면 양식이 확인되었음을 보장합니다.
GetErrors () GetErrors 무효화 ()
이 방법의 이름을 기반으로 필드를 반환합니다
- $name : this is the name of the form field to return $ 이름을 문자열이 반환하는 양식 필드의 이름입니다
이것은 양식 유형을 설정합니다
SetFormType ( string $type ) 무효 SetFormType (문자열 $ 타입)
- $type : this sets the type of form RocksPost or RocksGet 문자열 $ 유형 :이 양식 RocksPost 또는 RocksGet의 유형을 설정합니다
이것은 모든 양식 필드는 모든 유효성 검사 테스트를 통과 것을 확인합니다.
Validate () 확인을 무효화 ()