]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/NoticeWrapper.php
Readjusted location and size for logo, form_notice,
[quix0rs-gnu-social.git] / classes / NoticeWrapper.php
index f8c0aa38199400ec926a4283fb7ab9b17d350536..233340ccd69e27b9019b3da49652b70819c1dc80 100644 (file)
@@ -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