Public Member Functions | |
getErrors () | |
dropAllErrors () | |
| |
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) | |
| |
toFormValue ($value) | |
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() |
Definition at line 20 of file Form.class.php.
static Form::create | ( | ) | [static] |
Definition at line 32 of file Form.class.php.
Referenced by FormedController::__construct(), and MethodMappedController::chooseAction().
Form::getErrors | ( | ) |
Definition at line 37 of file Form.class.php.
Form::dropAllErrors | ( | ) |
Form::markMissing | ( | $ | primitiveName | ) |
primitive marking
Definition at line 60 of file Form.class.php.
References markCustom(), and MISSING.
Referenced by DropCommand::run().
Form::markWrong | ( | $ | name | ) |
Form::markGood | ( | $ | primitiveName | ) |
Form::markCustom | ( | $ | primitiveName, | |
$ | customMark | |||
) |
Set's custom error mark for primitive.
Definition at line 106 of file Form.class.php.
Referenced by markMissing().
Form::getTextualErrors | ( | ) |
Returns plain list of error's labels.
Definition at line 119 of file Form.class.php.
References getTextualErrorFor().
Form::getTextualErrorFor | ( | $ | name | ) |
Form::getErrorDescriptionFor | ( | $ | name | ) |
Definition at line 151 of file Form.class.php.
Form::addErrorDescription | ( | $ | name, | |
$ | errorType, | |||
$ | description | |||
) |
Form::addWrongLabel | ( | $ | primitiveName, | |
$ | label | |||
) |
Definition at line 193 of file Form.class.php.
References addErrorLabel(), and WRONG.
Form::addMissingLabel | ( | $ | primitiveName, | |
$ | label | |||
) |
Definition at line 201 of file Form.class.php.
References addErrorLabel(), and MISSING.
Form::addCustomLabel | ( | $ | primitiveName, | |
$ | customMark, | |||
$ | label | |||
) |
Definition at line 209 of file Form.class.php.
References addErrorLabel().
Form::import | ( | $ | scope | ) |
Definition at line 217 of file Form.class.php.
References importPrimitive().
Form::importMore | ( | $ | scope | ) |
Definition at line 228 of file Form.class.php.
References importPrimitive().
Form::importOne | ( | $ | primitiveName, | |
$ | scope | |||
) |
Definition at line 241 of file Form.class.php.
References importPrimitive().
Form::importValue | ( | $ | primitiveName, | |
$ | value | |||
) |
Definition at line 249 of file Form.class.php.
References checkImportResult().
Referenced by importPrimitive(), and FormUtils::object2form().
Form::importOneMore | ( | $ | primitiveName, | |
$ | scope | |||
) |
Definition at line 259 of file Form.class.php.
References importPrimitive().
Form::toFormValue | ( | $ | value | ) |
Definition at line 269 of file Form.class.php.
References PlainForm::getValue().
Referenced by PrefixUnaryExpression::toBoolean(), PostfixUnaryExpression::toBoolean(), LogicalBetween::toBoolean(), InExpression::toBoolean(), EqualsLowerExpression::toBoolean(), and BinaryExpression::toBoolean().
Form::importPrimitive | ( | $ | scope, | |
BasePrimitive $ | prm | |||
) | [private] |
Definition at line 282 of file Form.class.php.
References checkImportResult(), and importValue().
Referenced by import(), importMore(), importOne(), and importOneMore().
Form::checkImportResult | ( | BasePrimitive $ | prm, | |
$ | result | |||
) | [private] |
Definition at line 300 of file Form.class.php.
References BasePrimitive::getName().
Referenced by importPrimitive(), and importValue().
Form::addErrorLabel | ( | $ | name, | |
$ | errorType, | |||
$ | label | |||
) | [private] |
Assigns specific label for given primitive and error type.
One more example of horrible documentation style.
$name | string primitive or rule name | |
$errorType | enum Form::(WRONG|MISSING) | |
$label | string YDFB WTF is this :-) (c) /. |
MissingElementException |
Definition at line 325 of file Form.class.php.
Referenced by addCustomLabel(), addMissingLabel(), and addWrongLabel().
const Form::WRONG = 0x0001 |
Definition at line 22 of file Form.class.php.
Referenced by addWrongLabel(), and RegulatedForm::checkRules().
const Form::MISSING = 0x0002 |
Form::$errors = array() [private] |
Definition at line 25 of file Form.class.php.
Form::$labels = array() [private] |
Definition at line 26 of file Form.class.php.
Form::$describedLabels = array() [private] |
Definition at line 27 of file Form.class.php.