]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - classes/Notice.php
f990675fba02359ee1dbf90177ded341ad2a759d
[quix0rs-gnu-social.git] / classes / Notice.php
1 <?php
2 /**
3  * Table Definition for notice
4  */
5 require_once 'DB/DataObject.php';
6
7 class Notice extends DB_DataObject 
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
12     public $__table = 'notice';                          // table name
13     public $id;                              // int(4)  primary_key not_null
14     public $profile_id;                      // int(4)   not_null
15     public $content;                         // varchar(140)  
16     public $rendered;                        // varchar(140)  
17     public $url;                             // varchar(255)  
18     public $created;                         // datetime()   not_null
19     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
20
21     /* Static get */
22     function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
23
24     /* the code above is auto generated do not remove the tag below */
25     ###END_AUTOCODE
26
27         // XXX: if profile_id changes, this goes invalid. To be fair, that's a very edge case
28         static $profile;
29         
30         function getProfile() {
31                 if (!$this->profile) {
32                         $this->profile = Profile::staticGet($this->profile_id);
33                 }
34                 return $this->profile;
35         }
36 }