DataObject performs 2 tasks: 1. Builds SQL statements based on the objects vars and the builder methods. 2. acts as a datastore for a table row. The core class is designed to be extended for each of your tables so that you put the data logic inside the data classes. included is a Generator to make your configuration files and your base classes.
è possibile configurare il tutto senza utilizzare un file .ini esterno
$options = &PEAR::getStaticProperty('DB_DataObject','options');
$options = array(
'database' => DBTYPE.'://'.DBUSER.'@'.DBSERVER.'/'.DBNAME,
'schema_location' => PATH_APPLICATION.PATH_CLASSES.'/dataobject/',
'class_location' => PATH_APPLICATION.PATH_CLASSES.'/dataobject/',
'require_prefix' => PATH_APPLICATION.PATH_CLASSES.'/dataobject/',
'class_prefix' => 'DataObjects_'
);
Link Ufficiali
http://pear.php.net/package/DB_DataObject download page
http://pear.php.net/manual/en/package.database.db-dataobject.php manuale d'uso
http://www.phpfreaks.com/pear_manual/page/packages.database.db-dataobject.html tutorial su phpfreaksHelp & Faq
http://atomized.org/PEAR/ alcune classi e funzioni utili a customizzare DataObjectlib/WikiUser.php:59: Notice[8]: Only variables should be assigned by reference
lib/Template.php:112: Notice[8]: Only variables should be assigned by reference
lib/Template.php:114: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'top') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'top') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference
lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference
lib/CachedMarkup.php (In template 'browse') (In template 'body') (In template 'html'):427: Notice[8]: Only variables should be assigned by reference