Controller_PatternRouter::addRule PHP Метод

addRule() публичный Метод

Add new rule to the pattern router. If $regexp is matched, then page is changed to $target and arguments returned by preg_match are stored inside GET as per supplied params array.
public addRule ( $regex, $target = null, $params = null )
    public function addRule($regex, $target = null, $params = null)
    {
        $this->rules[] = array($regex, $target, $params);
        return $this;
    }