if (is_array($value)) { $temp =
$value; // keep the original value
$this->_defaults
[self::NOT_EMPTY_MESSAGE
] =
array_pop($temp);
unset($temp);
} else { $this->_defaults
[self::NOT_EMPTY_MESSAGE
] =
$value;
} } } $validatorRule[self::VALIDATOR_CHAIN
]->
addValidator($validator,
$validatorRule[self::BREAK_CHAIN
]);
} $validatorRule[self::VALIDATOR_CHAIN_COUNT
] =
count($validatorList);
} /**
* If the ruleName is the special wildcard rule,
* then apply the validator chain to all input data.
* Else just process the field named by the rule.
*/
if ($ruleName == self::RULE_WILDCARD
) { foreach (array_keys($this->_data
) as $field) {