HTML_QuickForm_element::exportValue() – Returns a 'safe' element's value (package developer related)


require_once 'HTML/QuickForm/element.php';

mixed HTML_QuickForm_element::exportValue ( array &$submitValues , bool $assoc = false )


This method is not intended to be called directly. It is called by HTML_QuickForm::exportValue() and HTML_QuickForm::exportValues() methods.

The method first tries to find a value for itself in a passed array, if such a value is not found it takes the display value via getValue(). It then filters out the values that cannot possibly be submitted by this element and returns the result.


array &$submitValues

array of submitted values to search

boolean $assoc

whether to return the value as associative array


throws no exceptions thrown


This function can not be called statically.

Returns the current API version (Previous) Freezes the element (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.