Login   Register  
PHP Classes
elePHPant
Icontem

Data Workings: Access database table records as objects

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2006-05-05 (8 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 409 All time: 5,814 This week: 1,870Up
Version License Categories  
dataw 1.0The PHP LicenseDatabases
Description Author  

This class can be used to access records of an SQL database table as objects.

It can access a SQL database table and retrieve its list columns so it can determine which fields need to be retrieved and stored to map record information to object variables and vice-versa.

It can insert new table records from values set to the respective object variables.

It can also retrieve or delete table records given the primary key value, assuming that the table only has one primary key field.

A changed object may also be saved back to the respective table record.

The class can also execute queries that retrieve multiple records. The queries may be sorted by given field. The range of records returned by the query may also be limited to a given range.

The class supports multiple databases relying on PEAR DB package.

Picture of Kevin Cadman
Name: Kevin Cadman <contact>
Classes: 2 packages by
Country: South Africa South Africa
Age: 31
All time rank: 3294 in South Africa South Africa
Week rank: 1096 Down9 in South Africa South Africa Down

  Files folder image Files  
File Role Description
Plain text file dataclass.inc Class DataObject Class
Accessible without login Plain text file examples.php Example Example Usage
Accessible without login Plain text file system.inc Conf. System Configuration and Database Connection
Accessible without login Plain text file README Doc. Information

 Version Control Unique User Downloads Download Rankings  
 0%Total:409All time:5,814
 This week:0This week:1,870Up