PhpRiot
Download This Article
Download this article in PDF format with all listings and files.

Price: $5.00 AUD
(Approx. $4.10 USD)

More information
Related Books
Professional Linux Programming

Professional Linux Programming

As Linux increases its presence throughout the world as a target platform for professional...
Browse Articles
Ajax (4), APC (1), CAPTCHA (1), CSS (3), Debugging (1), File Upload (1), Google (3), Google Maps (2), JavaScript (12), JSON (2), MVC (1), MySQL (7), onbeforeunload (1), OOP (1), PHP (28), PhpDoc (1), PostgreSQL (6), Prototype (11), Reflection (1), RFC 1867 (1), Robots (1), Scriptaculous (1), SEO (1), Sessions (1), SimpleXML (1), Smarty (5), SOAP (1), SPL (1), Templates (2), W3C (1), XHTML (1), Zend Framework (1), Zend_Search_Lucene (1)

PhpRiot Newsletter
Your Email Address:

Managing Your Data With DatabaseObject

Summary

In this example we looked at the DatabaseObject class by me, Quentin Zervaas.

It is a class that provides a high level interface to your database, making creation, updating and deletion of database records very simple.

Hopefully a few of the examples here have shown how much you can do with the class, and how it can help centralise your code for managing a database table into a single file.

This class is used extensively in the implementation of phpRiot. For instance, there is an ‘articles’ table which holds all the various articles in the site. There is a PHP class called ‘Article’ which is a sub-class of DatabaseObject, used to manage this table.

In This Article


Tagged in , ,

Additional Files