Re: HTML_QuickForm: setType not changing get_class_methods

From: Date: Thu, 09 Dec 2004 09:11:17 +0000
Subject: Re: HTML_QuickForm: setType not changing get_class_methods
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16137@lists.php.net to get a copy of this message
Hi, Sarah Gray wrote:
Does changing an element by using setType() not work in the way I am expecting it to work? Feel free to correct my thinking or methodology. I am trying to access the method for HTML_QuickForm_file, isUploadedFile(), which I thought would be accessible to me if I changed the element type to 'file'.
Making setType() public was a mistake, do not use it. While it does change the type attribute of <input> tag, it cannot obviously change the class of $element object.

« previous php.pear.general (#16137) next »