3 * Table Definition for user_openid_trustroot
6 if (!defined('STATUSNET')) {
10 class User_openid_trustroot extends Managed_DataObject
13 /* the code below is auto generated do not remove the above tag */
15 public $__table = 'user_openid_trustroot'; // table name
16 public $trustroot; // varchar(255) primary_key not_null
17 public $user_id; // int(4) primary_key not_null
18 public $created; // datetime() not_null
19 public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
21 /* the code above is auto generated do not remove the tag below */
26 return Memcached_DataObject::pkeyGet('User_openid_trustroot', $kv);
31 $db = $this->getDatabaseConnection();
32 $dbtype = $db->phptype; // Database type is stored here. Crazy but true.
34 return array('trustroot' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,
35 'user_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
36 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL,
37 'modified' => ($dbtype == 'mysql' || $dbtype == 'mysqli') ?
38 DB_DATAOBJECT_MYSQLTIMESTAMP + DB_DATAOBJECT_NOTNULL :
39 DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME
45 return array_keys($this->keyTypes());
50 return array('trustroot' => 'K', 'user_id' => 'K');