HTML_QuickForm::exportValues()
Описание
Returns the values for the form elements. First it tries to return filtered submitted values, if there were none then it takes the values set by setDefaults() or setConstants().
Unlike getSubmitValues(), this will return only the values corresponding to the elements added to the form and only the values that could actually be submitted: if we have 'Yes'/'No' radiobuttons 'Maybe' will not be considered a valid submit value. You also cannot get values for file elements via this method.
Параметр
- mixed $elementList
Array/string of element names, whose values we want. If not set then return all elements.
Throws
Таблица 43-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
QUICKFORM_NONEXIST_ELEMENT | Element '$element' does not exist in HTML_QuickForm::exportValue() | Tried to get a value of a non-existant element | Check the element's name spelling |
Пред. | Начало | След. |
HTML_QuickForm::exportValue() | Уровень выше | HTML_QuickForm::getElementValue() |