]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/OpenID/User_openid_trustroot.php
Merge branch 'inblob' of git@gitorious.org:~evan/statusnet/evans-mainline into inblob
[quix0rs-gnu-social.git] / plugins / OpenID / User_openid_trustroot.php
1 <?php
2 /**
3  * Table Definition for user_openid_trustroot
4  */
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
6
7 class User_openid_trustroot extends Memcached_DataObject
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
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
17
18     /* Static get */
19     function staticGet($k,$v=null)
20     { return Memcached_DataObject::staticGet('User_openid_trustroot',$k,$v); }
21
22     /* the code above is auto generated do not remove the tag below */
23     ###END_AUTOCODE
24
25     function pkeyGet($kv)
26     {
27         return Memcached_DataObject::pkeyGet('User_openid_trustroot', $kv);
28     }
29
30     function table()
31     {
32         $db = $this->getDatabaseConnection();
33         $dbtype = $db->phptype; // Database type is stored here. Crazy but true.
34
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
41                      );
42     }
43
44     function keys()
45     {
46         return array('trustroot' => 'K', 'user_id' => 'K');
47     }
48
49 }