[ANNOUNCEMENT] DB_DataObject-0.19 (stable) Released.

From: Date: Thu, 22 May 2003 01:09:19 +0000
Subject: [ANNOUNCEMENT] DB_DataObject-0.19 (stable) Released.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5532@lists.php.net to get a copy of this message
The new PEAR package DB_DataObject-0.19 (stable) has been released at http://pear.php.net/. Release notes ------------- - fix bug #23712 - deleting (and probably updating as well) an object while being fetched. (Michael McCarthy for spotting this) - fix generator overwriting code when file was edited in a Windows editor (Robert Janeczek) - validation will not produce errors on empty numeric data by default. - overload extension enabled to relay setFrom and toArray calls to get*, set* methods, which are predefined as getXXX = returns $object->XXX setXXX($V) = returns true (or an error string if you create your own) (only affects php-4.3.2RC2 or later..) - selectAs($dataobject,'prefix_%s') to help control the way join queries return their data * doing selectAs() - clears the select and sets it to table.id as id ... etc. - joinAdd has 2 extra optional arguments $dataObject->joinAdd($otherDataObject, $joinType, $joinAs) existing behaviour (INNER Joins) is default (eg. no value) $joinType can be: INNER,LEFT,RIGHT = eg. INNER JOIN ... etc. '' = just added with a , and the link conditions are added with a WHERE statement. $joinAs can be used to name the table differently in the join eg. SELECT .. FROM person INNER JOIN address as homeaddress ...... - setFrom has an extra optional parameter for formating: eg. $object->setFrom($_POST,'prefix_%s') would map prefix_name to $object->name the default is '%s' which is the same as the previous behaviour - added option dont_die (default no) to ini file default (no) means that DataObjects will emit a PEAR_ERROR_DIE on configuration and programming errors true or 1 means that you can write a PEAR::error handler to catch the errors and display a nice it's not working message Package Info ------------- DataObject performs 2 tasks: 1. Builds SQL statements based on the objects vars and the builder methods. 2. acts as a datastore for a table row. The core class is designed to be extended for each of your tables so that you put the data logic inside the data classes. included is a Generator to make your configuration files and your base classes. Related Links ------------- Package home: http://pear.php.net/package-info.php?package=DB_DataObject Changelog: http://pear.php.net/package-changelog.php?package=DB_DataObject Download: http://pear.php.net/get/DB_DataObject-0.19.tgz Authors ------------- Alan Knowles <alan@akbkhome.com> (lead)

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