Re: DataObject [date_updated] fields

From: Date: Fri, 29 Oct 2004 16:23:39 +0000
Subject: Re: DataObject [date_updated] fields
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15228@lists.php.net to get a copy of this message
On Fri, 29 Oct 2004 16:56:05 +0200, Alexander Petri <alex.petri@gmx.de> wrote: > hmm this does not work: > > here is my class > > class userForm extends DB_DataObject_FormBuilder_QuickForm { > function &getForm($action=false, > $target='_self',$formName='CustomerForm', > $method='post'){ > if (!$action) { > $action = $_SERVER['REQUEST_URI']; > } > $form =& new CustomSmarty($formName, $method, $action,$target); > return $form; > } > function update(){ > $this->date_updated=date("Y-m-d H:i:s"); > parent::update; > } > } > update() / insert() are in the DO, not the FB. ;-) -- paperCrane --Justin Patrin--

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