DB_DataObject
| From: | Noel da Costa | Date: | Sat, 22 Jan 2011 12:59:54 +0000 |
| Subject: | DB_DataObject | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30927@lists.php.net to get a copy of this message | ||
Hi,
How do I interprete the data-type codes returned by DB_DataObject::table() ?
The manual only shows these values:
// array(
// 'id' => 1 // == DB_DATAOBJECT_INT
// 'name' => 2 // == DB_DATAOBJECT_STR
// 'bday' => 6 // == DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE
// 'last' => 14 // == DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE +
DB_DATAOBJECT_TIME
// 'active' => 17 // == DB_DATAOBJECT_INT + DB_DATAOBJECT_BOOL
// 'desc' => 34 // == DB_DATAOBJECT_STR + DB_DATAOBJECT_TXT
// 'photo' => 64 // == DB_DATAOBJECT_STR + DB_DATAOBJECT_BLOB
// )
... but I'm getting all sorts of values back and I don't know what to make of them:
e.g.
[task_id] => 129
[title] => 2
[description] => 66
[date_modified] => 384
[date_created] => 14
[date_due] => 14
[estimated_duration] => 1
[mastersynch] => 145
[repositorytaskdata] => 66
[originator_id] => 1
[repositoryaccount_id] => 1
How can I interprete field data-types from this? By the way I'm using DB_DataObjects without
any .ini files... just the default settings.
Thanks,
Noel