DataObject and Quickform

From: Date: Fri, 16 Apr 2004 16:30:37 +0000
Subject: DataObject and Quickform
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11919@lists.php.net to get a copy of this message
Hello I have a problem with the methods toArray and setFrom from the DataObject class in coorperation with QuickForm Date Elements. The Date element returns an Array which looks like Array ( "d" => 1, "m" => 1, "Y" => 2004 ) but DataObject expects a String like "2004-01-01". This results of course in an error. My solution is to overloade the functions toArray and setFrom in each extension of the DataObject class. Is this the best way? Thanks Marco

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