]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Invitation.php
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
[quix0rs-gnu-social.git] / classes / Invitation.php
1 <?php
2 /**
3  * Table Definition for invitation
4  */
5 require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
6
7 class Invitation extends Memcached_DataObject
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
12     public $__table = 'invitation';                      // table name
13     public $code;                            // varchar(32)  primary_key not_null
14     public $user_id;                         // int(4)   not_null
15     public $address;                         // varchar(255)  multiple_key not_null
16     public $address_type;                    // varchar(8)  multiple_key not_null
17     public $registered_user_id;              // int(4)   not_null
18     public $created;                         // datetime()   not_null
19
20     /* Static get */
21     function staticGet($k,$v=null)
22     { return Memcached_DataObject::staticGet('Invitation',$k,$v); }
23
24     /* the code above is auto generated do not remove the tag below */
25     ###END_AUTOCODE
26
27     function convert($user)
28     {
29         $orig = clone($this);
30         $this->registered_user_id = $user->id;
31         return $this->update($orig);
32     }
33 }