summaryrefslogtreecommitdiff
path: root/classes/NoticeWrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/NoticeWrapper.php')
-rw-r--r--classes/NoticeWrapper.php47
1 files changed, 25 insertions, 22 deletions
diff --git a/classes/NoticeWrapper.php b/classes/NoticeWrapper.php
index f8c0aa381..233340ccd 100644
--- a/classes/NoticeWrapper.php
+++ b/classes/NoticeWrapper.php
@@ -21,7 +21,8 @@ if (!defined('LACONICA')) { exit(1); }
require_once(INSTALLDIR.'/classes/Notice.php');
-class NoticeWrapper extends Notice {
+class NoticeWrapper extends Notice
+{
public $id; // int(4) primary_key not_null
public $profile_id; // int(4) not_null
@@ -35,25 +36,27 @@ class NoticeWrapper extends Notice {
public $is_local; // tinyint(1)
public $source; // varchar(32)
- var $notices = NULL;
- var $i = -1;
-
- function __construct($arr) {
- $this->notices = $arr;
- }
-
- function fetch() {
- static $fields = array('id', 'profile_id', 'uri', 'content', 'rendered',
- 'url', 'created', 'modified', 'reply_to', 'is_local', 'source');
- $this->i++;
- if ($this->i >= count($this->notices)) {
- return false;
- } else {
- $n = $this->notices[$this->i];
- foreach ($fields as $f) {
- $this->$f = $n->$f;
- }
- return true;
- }
- }
+ var $notices = null;
+ var $i = -1;
+
+ function __construct($arr)
+ {
+ $this->notices = $arr;
+ }
+
+ function fetch()
+ {
+ static $fields = array('id', 'profile_id', 'uri', 'content', 'rendered',
+ 'url', 'created', 'modified', 'reply_to', 'is_local', 'source');
+ $this->i++;
+ if ($this->i >= count($this->notices)) {
+ return false;
+ } else {
+ $n = $this->notices[$this->i];
+ foreach ($fields as $f) {
+ $this->$f = $n->$f;
+ }
+ return true;
+ }
+ }
} \ No newline at end of file