Some tweaks to DB_DataObject
| From: | Dan Rossi | Date: | Thu, 21 Apr 2005 14:09:18 +0000 |
| Subject: | Some tweaks to DB_DataObject | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-18870@lists.php.net to get a copy of this message | ||
As meantioned earlier today, you can tell me I have gone too far and its a BC break, but if its useful then great :)
http://www.electroteque.org/pear/DB_DataObject.diff
I added some methods to handle transactions begin, commit , rollback and removed it from _query , but u can put that bak if u like heheh. I added a feature for a condition setter method so i could add custom whereAdd's, this happens during the _build_condition method. I also added a feature for setFrom to ignore empty values in a key, this was highly useful especailly for a search filter where I setup an advanced search form, but i dont want all fields to show up in the query only the ones i selected ! It was having unexpected results.
I noticed some changes were made via cvs, how do i do an update on my end hehe.