Skip to Content (c) Skip to Navigation (n) Skip to Search (s)

1.0-beta (rev 290) released!

xPDO is in beta and we're changing focus to improve documentation and usability. xPDO is being used to develop MODx Revolution 2.0, a next generation PHP-based, Open-Source content management framework.

Forgotten credits...

I'd like to extend a special thanks to Andrea Giammarchi for his PDO for PHP 4 implementation that inspired me to begin coding this project. If not for PHPClasses.org and the inspiration I found in Andrea's work there, the OpenExpedio project would likely not exist, as I probably would have invested my time in working with PHPDoctrine.

Setting the property values

$person->set('first_name', 'Bob');
$person->set('last_name', 'Bla');
$person->set('middle_name', 'La');
$person->set('date_modified', date('Y-m-d H:i:s'));
$person->set('dob', '1971-07-22');
$person->set('gender', 'M');
$person->set('blood_type', 'AB-');
$person->set('password', md5('b0bl4bl4'));
$person->set('username', 'boblabla');
$person->set('security_level', 1);

At this point, we have a transient instance that does not persist in the database. For this you will need to have one more line of code which will persist the object instance to the database.

$person->save();