Top Level :: Database

Package Information: DB_Table 1.5.0RC3

Show All Changelogs
» Version » Information
1.5.5 2008-06-17     stable
1.5.4 2008-06-08     stable
1.5.3 2008-06-06     stable
1.5.2 2008-05-14     stable
1.5.1 2008-03-28     stable
1.5.0 2007-06-27     stable
1.5.0RC3Download

Release date: 2007-06-14 19:12 UTC
Release state: beta

Changelog:

- Added complete documentation in the PEAR manual.
- new DB_Table_Base class added. This is a parent class for DB_Table and DB_Table_Database that contains methods and properties common to both classes.
- The DB_Table::select*() and DB_Table::buildSQL() methods, which are now inherited from the DB_Table_Base class, now accept either a query array or (as before) a key of the $sql property array as a first argument.
- Added DB_Table_Database::onDeleteAction() and DB_Table_Database::onUpdateAction() methods, which implement referentially triggered actions (e.g., cascading deletes). This code had previously been part of the DB_Table_Database insert() and update() methods.
- Changed behavior of DB_Table::insert() and DB_Table::update() method for a DB_Table object that is part of a DB_Table_Database instance: If a parent DB_Table_Database object exists, these methods can now validate foreign keys and implement ON DELETE and ON UPDATE actions, if these behaviors are enabled in the parent DB_Table_Database object. The behaviors of the DB_Table and DB_Table_Database insert and update methods are now identical. (This is a BC break with 1.5.0RC1 and 1.5.0RC2 beta releases, but not with earlier stable releases.)
- Disable automatic foreign key validation by default (BC break with releases 1.5.0RC1 and 1.5.0RC2).
- Added buildFilter() method to the DB_Table_Base class. This a simplified version of the DB_Table_Database::buildFilter() method of previous 1.5.0RC* releases. (BC break with 1.5.0RC1 and 1.5.0RC2)
- Added a private DB_Table_Database::_buildForeignKeyFilter() for more specialized uses of the old buildFilter() method, which are used internally to construct queries.
- Changed return value of DB_Table_Database::validForeignKey on failure from boolean false to PEAR_Error. Changed related error codes.
- Changed <autoinc> element of XML output to <autoincrement> for consistency with MDB2 XML schema.
- Simplified unit tests for DB_Table_Database by adding a parent DatabaseTest unit test class.

Dependencies:
  • PHP Version: PHP 4.3.0 or newer
  • PEAR Package: PEAR Installer 1.5.0 or newer
  • PEAR Package: HTML_QuickForm (optional)
  • PEAR Package: DB 1.7.11 or newer (optional)
  • PEAR Package: MDB2 2.4.1 or newer (optional)
1.5.0RC2 2007-03-25     beta
1.5.0RC1 2007-02-06     beta
1.4.0 2006-11-09     stable
1.3.2 2006-07-25     stable
1.3.1 2006-07-19     stable
1.3.0 2006-04-26     stable
1.3.0RC5 2006-04-19     beta
1.3.0RC4 2006-04-13     beta
1.3.0RC3 2006-04-07     beta
1.3.0RC2 2006-04-07     beta
1.3.0RC1 2006-02-27     beta
1.2.1 2005-09-13     stable
1.2.0 2005-08-29     stable
1.1.0 2005-08-07     stable
1.0.1 2005-05-28     stable
1.0.0 2005-03-07     stable
1.0.0RC1 2005-02-23     beta
0.23.0 2004-12-30     beta
0.22.0 2004-10-27     beta
0.21.2 2004-07-12     alpha
0.21.1 2004-07-11     alpha
0.21 2004-07-11     alpha
0.18 2004-04-23     alpha
0.17 2004-04-21     alpha