X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FNotice.php;h=24a719104fc9a263e8b08feaa2046cb8b403d551;hb=9bb55af26f47d960cc33b02ec355d832d18b31b7;hp=6fe2f675561f51371a62789132cb7f674911c20b;hpb=0fa97d6e2e296c780db78b7e88d283670adf1226;p=quix0rs-gnu-social.git diff --git a/classes/Notice.php b/classes/Notice.php index 6fe2f67556..24a719104f 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1,4 +1,24 @@ . + */ + +if (!defined('LACONICA')) { exit(1); } + /** * Table Definition for notice */ @@ -12,8 +32,8 @@ class Notice extends DB_DataObject public $__table = 'notice'; // table name public $id; // int(4) primary_key not_null public $profile_id; // int(4) not_null + public $uri; // varchar(255) unique_key public $content; // varchar(140) - public $rendered; // varchar(140) public $url; // varchar(255) public $created; // datetime() not_null public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP @@ -23,4 +43,8 @@ class Notice extends DB_DataObject /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE + + function getProfile() { + return Profile::staticGet($this->profile_id); + } }