function &getRule($ruleName)
    {
        list($class, $path) = $GLOBALS['_HTML_QuickForm_registered_rules'][$ruleName];

        if (!isset($this->_rules[$class])) {
            if (!empty($path)) {
                include_once($path);
            }
            $this->_rules[$class] = new $class();
        }
        $this->_rules[$class]->setName($ruleName);
        return $this->_rules[$class];
    }
function &getRule($ruleName)
    {
        list($class, $path) = $GLOBALS['_HTML_QuickForm_registered_rules'][$ruleName];

        if (!isset($this->_rules[$class])) {
            if (!empty($path)) {
                include_once($path);
            }
            $this->_rules[$class] = new $class();
        }
        $this->_rules[$class]->setName($ruleName);
        return $this->_rules[$class];
    }
function & getRule ( $ ruleName ) { list ( $ class , $ path ) = $ GLOBALS [ '_HTML_QuickForm_registered_rules' ] [ $ ruleName ] ; if ( ! isset ( $ this -> _rules [ $ class ] ) ) { if ( ! empty ( $ path ) ) { include_once ( $ path ) ; } $ this -> _rules [ $ class ] = new $ class ( ) ; } $ this -> _rules [ $ class ] -> setName ( $ ruleName ) ; return $ this -> _rules [ $ class ] ; }
Returns a reference to the requested rule object

@param     string   $ruleName        Name of the requested rule
@access    public
@return    object
Returns a reference to the requested rule object