function &getElement($element)
    {
        if (isset($this->_elementIndex[$element])) {
            return $this->_elements[$this->_elementIndex[$element]];
        } else {
            $error = self::raiseError(null, QUICKFORM_NONEXIST_ELEMENT, null, E_USER_WARNING, "Element '$element' does not exist in HTML_QuickForm::getElement()", 'HTML_QuickForm_Error', true);
            return $error;
        }
    }
function &getElement($element)
    {
        if (isset($this->_elementIndex[$element])) {
            return $this->_elements[$this->_elementIndex[$element]];
        } else {
            $error = self::raiseError(null, QUICKFORM_NONEXIST_ELEMENT, null, E_USER_WARNING, "Element '$element' does not exist in HTML_QuickForm::getElement()", 'HTML_QuickForm_Error', true);
            return $error;
        }
    }
function & getElement ( $ element ) { if ( isset ( $ this -> _elementIndex [ $ element ] ) ) { return $ this -> _elements [ $ this -> _elementIndex [ $ element ] ] ; } else { $ error = self :: raiseError ( null , QUICKFORM_NONEXIST_ELEMENT , null , E_USER_WARNING , "Element '$element' does not exist in HTML_QuickForm::getElement()" , 'HTML_QuickForm_Error' , true ) ; return $ error ; } }
Returns a reference to the element

@param     string     $element    Element name
@since     2.0
@access    public
@return    object     reference to element
@throws    HTML_QuickForm_Error
Returns a reference to the element