3 * Table Definition for notice
5 require_once 'DB/DataObject.php';
7 class Notice extends DB_DataObject
10 /* the code below is auto generated do not remove the above tag */
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
22 function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
24 /* the code above is auto generated do not remove the tag below */
27 // XXX: if profile_id changes, this goes invalid. To be fair, that's a very edge case
30 function getProfile() {
31 if (!$this->profile) {
32 $this->profile = Profile::staticGet($this->profile_id);
34 return $this->profile;