Method |
Description |
|
applyRules ( $field, $ruleset ) |
This is the main body for rule processing. |
|
applyRulesets ( ) |
Go through the list of defined rules and call the corresponding
filters and convertors. |
|
expandFieldDefinition ( $field_definition, &$normalized_rules ) |
Provided with a multiple field definition, this will convert
them into an array. |
|
fail ( ) |
{{{ Methods which are called by the rules |
|
get ( $field ) |
Returns the original value of the field. |
|
getActualFields ( ) |
Get list of fields which we are going to validate. In some cases
it makes no sense to validate fields which are not appearing individually
the form, therefore this method will look carefully at what you are
validating. |
|
getRules ( $field ) |
Call this to get list of parsed rules for specified field. |
|
init ( ) |
{{{ Initialization method |
|
is ( ) |
This method will go through all the rules you specify, expand
and normalize them and assign into array indexed by field name. |
|
normalizeRules ( $rules ) |
Provided with string containing rules, this will convert it into
normal (array) form. |
|
now ( ) |
Apply rules now. |
|
on ( $hook, $object = null, $default_hook = false ) |
|
|
pullRule ( $alias = false ) |
Pulls next rule out of the rule stack (current_ruleset)
May allow alias ($name). |
|
pushRule ( ) |
Adds new rule into a rule-set, which will be executed next. |
|
resolveRuleAlias ( $rule ) |
|
|
rule_caption ( $a ) |
}}} |
|
rule_fail ( ) |
The only rule in Validator_Abstract. Will fail. |
|
set ( $field, $value ) |
Changes the original value of the field (for normalization). |
|
setSource ( $source ) |
If you are adding this Controller inside a Model, you don't need to
set source. If you want controller to work with an array or some other
object, use setSource(). |
|
stop ( ) |
|
|