function &getElementValue($element)
    {
        if (!isset($this->_elementIndex[$element])) {
            $error = self::raiseError(null, QUICKFORM_NONEXIST_ELEMENT, null, E_USER_WARNING, "Element '$element' does not exist in HTML_QuickForm::getElementValue()", 'HTML_QuickForm_Error', true);
            return $error;
        }
        $value = $this->_elements[$this->_elementIndex[$element]]->getValue();
        if (isset($this->_duplicateIndex[$element])) {
            foreach ($this->_duplicateIndex[$element] as $index) {
                if (null !== ($v = $this->_elements[$index]->getValue())) {
                    if (is_array($value)) {
                        $value[] = $v;
                    } else {
                        $value = (null === $value)? $v: array($value, $v);
                    }
                }
            }
        }
        return $value;
    }
function &getElementValue($element)
    {
        if (!isset($this->_elementIndex[$element])) {
            $error = self::raiseError(null, QUICKFORM_NONEXIST_ELEMENT, null, E_USER_WARNING, "Element '$element' does not exist in HTML_QuickForm::getElementValue()", 'HTML_QuickForm_Error', true);
            return $error;
        }
        $value = $this->_elements[$this->_elementIndex[$element]]->getValue();
        if (isset($this->_duplicateIndex[$element])) {
            foreach ($this->_duplicateIndex[$element] as $index) {
                if (null !== ($v = $this->_elements[$index]->getValue())) {
                    if (is_array($value)) {
                        $value[] = $v;
                    } else {
                        $value = (null === $value)? $v: array($value, $v);
                    }
                }
            }
        }
        return $value;
    }
function & getElementValue ( $ element ) { if ( ! isset ( $ this -> _elementIndex [ $ element ] ) ) { $ error = self :: raiseError ( null , QUICKFORM_NONEXIST_ELEMENT , null , E_USER_WARNING , "Element '$element' does not exist in HTML_QuickForm::getElementValue()" , 'HTML_QuickForm_Error' , true ) ; return $ error ; } $ value = $ this -> _elements [ $ this -> _elementIndex [ $ element ] ] -> getValue ( ) ; if ( isset ( $ this -> _duplicateIndex [ $ element ] ) ) { foreach ( $ this -> _duplicateIndex [ $ element ] as $ index ) { if ( null !== ( $ v = $ this -> _elements [ $ index ] -> getValue ( ) ) ) { if ( is_array ( $ value ) ) { $ value [ ] = $ v ; } else { $ value = ( null === $ value ) ? $ v : array ( $ value , $ v ) ; } } } } return $ value ; }
Returns the element's raw value

This returns the value as submitted by the form (not filtered)
or set via setDefaults() or setConstants()

@param     string     $element    Element name
@since     2.0
@access    public
@return    mixed     element value
@throws    HTML_QuickForm_Error
Returns the element s raw value