PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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 ?