Controller_Validator_Abstract::pushRule PHP Method

pushRule() public method

You can specify single or multiple rules, this method accepts variable arguments. Rules must be normalized.
public pushRule ( )
    public function pushRule()
    {
        $args = func_get_args();
        // TODO: this can probably be done by args+current_ruleset
        foreach (array_reverse($args) as $arg) {
            array_unshift($this->current_ruleset, $arg);
        }
    }