]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some statically called functions in plugins now declared statically
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Aug 2013 09:18:45 +0000 (11:18 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 18 Aug 2013 09:18:45 +0000 (11:18 +0200)
plugins/Bookmark/Bookmark.php
plugins/GNUsocialPhoto/Photo.php
plugins/GNUsocialVideo/Video.php
plugins/Poll/Poll.php
plugins/Poll/Poll_response.php
plugins/QnA/classes/QnA_Answer.php
plugins/QnA/classes/QnA_Question.php

index 6836744799fe2046776cf4b27b66f02151100310..7e831a3524f4690a40349ef14163ca04a193f1f3 100644 (file)
@@ -144,7 +144,7 @@ class Bookmark extends Memcached_DataObject
      *
      * @return Bookmark found bookmark or null
      */
-    function getByNotice($notice)
+    static function getByNotice($notice)
     {
         return self::staticGet('uri', $notice->uri);
     }
index 2bbbe91fd57c251f89dcdedc25b5e03a366f3797..97b78634d73dd1ddd00c3c5caeb879d2c110febc 100644 (file)
@@ -46,7 +46,7 @@ class Photo extends Managed_DataObject
     public $description;       // text
     public $profile_id;        // int
 
-    public function getByNotice($notice)
+    public static function getByNotice($notice)
     {
         return self::staticGet('uri', $notice->uri);
     }
index 7525b22fe5ff5f120c858a08b4c730422e7ada2c..543fe9129f522c21b136ed9d62365903b200c5f8 100644 (file)
@@ -43,7 +43,7 @@ class Video extends Managed_DataObject
     public $url;               // varchar (255)
     public $profile_id;        // int
 
-    public function getByNotice($notice)
+    public static function getByNotice($notice)
     {
         return self::staticGet('uri', $notice->uri);
     }
index f9155def4a40db536edcc82cf7668f43736144bf..41740f9a45ca01c8c8bb866b50a6ccf5af7d2203 100644 (file)
@@ -99,7 +99,7 @@ class Poll extends Managed_DataObject
      *
      * @return Poll found poll or null
      */
-    function getByNotice($notice)
+    static function getByNotice($notice)
     {
         return self::staticGet('uri', $notice->uri);
     }
index a63d790b539952f920d9f911e16ad3dd153d0658..b466e9f592ac84ac3a3b82986e12facafed480ca 100644 (file)
@@ -102,7 +102,7 @@ class Poll_response extends Managed_DataObject
      *
      * @return Poll_response found response or null
      */
-    function getByNotice($notice)
+    static function getByNotice($notice)
     {
         return self::staticGet('uri', $notice->uri);
     }
index 0d34f6baf8d8b6ab31ea14b0b8631bf467740f7b..5cbc80594c9f0007d02d131386da1cd26ad3c740 100644 (file)
@@ -120,7 +120,7 @@ class QnA_Answer extends Managed_DataObject
      *
      * @return QnA_Answer found response or null
      */
-    function getByNotice($notice)
+    static function getByNotice($notice)
     {
         $answer = self::staticGet('uri', $notice->uri);
         if (empty($answer)) {
index e1713b466056f6cb6275d423a643442e93372f22..a029a2434a22400ce0a7c4886b6cc62fb2bbc39f 100644 (file)
@@ -114,7 +114,7 @@ class QnA_Question extends Managed_DataObject
      *
      * @return Question found question or null
      */
-    function getByNotice($notice)
+    static function getByNotice($notice)
     {
         return self::staticGet('uri', $notice->uri);
     }