3 * Table Definition for user_openid_trustroot
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
7 class User_openid_trustroot extends Memcached_DataObject
10 /* the code below is auto generated do not remove the above tag */
12 public $__table = 'user_openid_trustroot'; // table name
13 public $trustroot; // varchar(255) primary_key not_null
14 public $user_id; // int(4) primary_key not_null
15 public $created; // datetime() not_null
16 public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
19 function staticGet($k,$v=null)
20 { return Memcached_DataObject::staticGet('User_openid_trustroot',$k,$v); }
22 /* the code above is auto generated do not remove the tag below */
27 return Memcached_DataObject::pkeyGet('User_openid_trustroot', $kv);
32 $db = $this->getDatabaseConnection();
33 $dbtype = $db->phptype; // Database type is stored here. Crazy but true.
35 return array('trustroot' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,
36 'user_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
37 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL,
38 'modified' => ($dbtype == 'mysql' || $dbtype == 'mysqli') ?
39 DB_DATAOBJECT_MYSQLTIMESTAMP + DB_DATAOBJECT_NOTNULL :
40 DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME
46 return array_keys($this->keyTypes());
51 return array('trustroot' => 'K', 'user_id' => 'K');