DB_DataObject - sugestion new feature
| From: | Marcos Neves | Date: | Wed, 25 Feb 2004 20:15:45 +0000 |
| Subject: | DB_DataObject - sugestion new feature | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-25868@lists.php.net to get a copy of this message | ||
what about a method that reset the DataObject?
like this:
$db = factory....
do something....
$db->reset();
do other things...
where reset() is a method that back $db to his initial state doing something like this:
function reset(){
$this->selectAdd();
$this->selectAdd("*");
$this->whereAdd();
$this->orderBy();
$this->limit();
// and clear internal data
$this->id = null;
$this->name = null;
}