PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #259

Missing implementation setValue for file

Details

Submitted2003-11-16 17:57 UTC
Fromrinse at solcon dot nl
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.3
OSLinux 2.4.18
Roadmaps(Not assigned)

Comments

[2003-11-16 17:57 UTC] rinse at solcon dot nl

Description:
------------
The problem is when you create a form with a file as element type you can't use the setValue() function. This function simply returns null. I changed the function to simply set the $this->_value to $value. Now I can simply set the values to the form as a default like all other form elements.

Reproduce code:
---------------
function setValue($value)
{
//return null;
$this->_value = $value;
} //end func setValue

[2003-11-16 18:38 UTC] mansion at php dot net

Why do you need to set the value of a file element ?

How do you expect it to be rendered by QuickForm ?