do object-oriented programming (OOP), it’s probably hard to understand and use EZPDO. If you are willing to learn the OO way in PHP, you probably should […]
EZPDO Dev Prerequisites
May 9th, 2007An Introduction to EZPDO
May 9th, 2007Table of Contents showTocToggle(”[+]”,”[-]”)
Overview
Motivation
Features
Licence
Quickstart
Wanna do more?
Installation
Tutorial
User manual
Developer’s guide
FAQ
References
Contact
Overview
Motivation
Object-relational mapping
(ORM)
is useful in developing both Web-based and non-Web-based applications.
Many of us in desperate search for good ORM tools for PHP end up finding
existing PHP persistence packages are either insufficient to address the problems
we face, or unnecessarily complex that demand a steep learning […]
Tutorial
May 9th, 2007Table of Contents showTocToggle(”[+]”,”[-]”)
Get ready
Download and install
The config file
Database setup
The data model
The Base class
The Author class
The Book class
Create objects (and associations)
Include runtime API
Create authors
Create books
Associate authors and books
Commit and auto_flush
Object operations
Check stored objects
Find objects
Delete objects
What’s next?
So you have followed the simple example and you want to do more with EZPDO.
In this tutorial, we are […]
Data types
May 9th, 2007Table of Contents showTocToggle(”[+]”,”[-]”)
The primitive types
bool, int, float
char, clob, blob
data, time and datetime
Summary of primitive types
Too few types?
Beyond primitive types
The primitive types
Here is a list of primitive data types supported in EZPDO.
bool
int(m)
decimal(m,d)
float(m)
char(m)
clob(m)
blob(m)
date
time
datetime
bool, int, float
Boolean, int, and float are the same as those defined in PHP and
are simply mapped to the corresponding default database […]
Runtime API
May 9th, 2007Table of Contents showTocToggle(”[+]”,”[-]”)
Object operations
Basic
Advanced
Event listeners
Transactions
This is a summary of the API methods that you would use for most of your tasks. The full API doc can be found here.
Object operations
Basic
All runtime calls are through the persistence manager (epManager). For most of the tasks, you need only six basic methods. They are -
epObject create($class […]