Complete Form class.
More...
List of all members.
|
Public Member Functions |
| | getErrors () |
| | getInnerErrors () |
| | dropAllErrors () |
| | enableImportFiltering () |
| | disableImportFiltering () |
| | getTextualErrors () |
| | Returns plain list of error's labels.
|
| | getTextualErrorFor ($name) |
| | getErrorDescriptionFor ($name) |
| | addErrorDescription ($name, $errorType, $description) |
| | addWrongLabel ($primitiveName, $label) |
| | addMissingLabel ($primitiveName, $label) |
| | addCustomLabel ($primitiveName, $customMark, $label) |
| | import ($scope) |
| | importMore ($scope) |
| | importOne ($primitiveName, $scope) |
| | importValue ($primitiveName, $value) |
| | importOneMore ($primitiveName, $scope) |
| | exportValue ($primitiveName) |
| | export () |
| | toFormValue ($value) |
| | setProto (EntityProto $proto) |
| | getProto () |
|
| | markMissing ($primitiveName) |
| | primitive marking
|
| | markWrong ($name) |
| | rule or primitive
|
| | markGood ($primitiveName) |
| | markCustom ($primitiveName, $customMark) |
| | Set's custom error mark for primitive.
|
Static Public Member Functions |
| static | create () |
Public Attributes |
| const | WRONG = 0x0001 |
| const | MISSING = 0x0002 |
Private Member Functions |
| | importPrimitive ($scope, BasePrimitive $prm) |
| | checkImportResult (BasePrimitive $prm, $result) |
| | addErrorLabel ($name, $errorType, $label) |
| | Assigns specific label for given primitive and error type.
|
Private Attributes |
| | $errors = array() |
| | $labels = array() |
| | $describedLabels = array() |
| | $proto = null |
| | $importFiltering = true |
Detailed Description
Complete Form class.
- See also:
- http://onphp.org/examples.Form.en.html
Definition at line 21 of file Form.class.php.
Member Function Documentation
| Form::addCustomLabel |
( |
$ |
primitiveName, |
|
|
$ |
customMark, |
|
|
$ |
label | |
|
) |
| | |
| Form::addErrorDescription |
( |
$ |
name, |
|
|
$ |
errorType, |
|
|
$ |
description | |
|
) |
| | |
| Form::addErrorLabel |
( |
$ |
name, |
|
|
$ |
errorType, |
|
|
$ |
label | |
|
) |
| | [private] |
Assigns specific label for given primitive and error type.
One more example of horrible documentation style.
- Parameters:
-
| $name | string primitive or rule name |
| $errorType | enum Form::(WRONG|MISSING) |
| $label | string YDFB WTF is this :-) (c) /. |
- Exceptions:
-
- Returns:
- Form
Definition at line 434 of file Form.class.php.
Referenced by addCustomLabel(), addMissingLabel(), and addWrongLabel().
| Form::addMissingLabel |
( |
$ |
primitiveName, |
|
|
$ |
label | |
|
) |
| | |
| Form::addWrongLabel |
( |
$ |
primitiveName, |
|
|
$ |
label | |
|
) |
| | |
| Form::checkImportResult |
( |
BasePrimitive $ |
prm, |
|
|
$ |
result | |
|
) |
| | [private] |
| static Form::create |
( |
|
) |
[static] |
| Form::disableImportFiltering |
( |
|
) |
|
| Form::enableImportFiltering |
( |
|
) |
|
| Form::exportValue |
( |
$ |
primitiveName |
) |
|
| Form::getErrorDescriptionFor |
( |
$ |
name |
) |
|
| Form::getTextualErrorFor |
( |
$ |
name |
) |
|
| Form::getTextualErrors |
( |
|
) |
|
| Form::importMore |
( |
$ |
scope |
) |
|
| Form::importOne |
( |
$ |
primitiveName, |
|
|
$ |
scope | |
|
) |
| | |
| Form::importOneMore |
( |
$ |
primitiveName, |
|
|
$ |
scope | |
|
) |
| | |
| Form::importValue |
( |
$ |
primitiveName, |
|
|
$ |
value | |
|
) |
| | |
| Form::markCustom |
( |
$ |
primitiveName, |
|
|
$ |
customMark | |
|
) |
| | |
| Form::markGood |
( |
$ |
primitiveName |
) |
|
| Form::markMissing |
( |
$ |
primitiveName |
) |
|
| Form::markWrong |
( |
$ |
name |
) |
|
| Form::toFormValue |
( |
$ |
value |
) |
|
Member Data Documentation
Form::$describedLabels = array() [private] |
Form::$errors = array() [private] |
Form::$importFiltering = true [private] |
Form::$labels = array() [private] |
Form::$proto = null [private] |
The documentation for this class was generated from the following file:
|
|
|