]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhoto/Photo.php
The overloaded DB_DataObject function staticGet is now called getKV
[quix0rs-gnu-social.git] / plugins / GNUsocialPhoto / Photo.php
index f6d932a300e48a6d3a7f4bb1c367c37c3c686d32..be354928fbc6a61e8ff5139200dec6435441b16d 100644 (file)
@@ -45,20 +45,15 @@ class Photo extends Managed_DataObject
     public $title;             // varchar (255)
     public $description;       // text
     public $profile_id;        // int
-    
-    public function staticGet($k, $v=null)
-    {
-        return Memcached_DataObject::staticGet('photo', $k, $v);
-    }
 
-    public function getByNotice($notice)
+    public static function getByNotice($notice)
     {
-        return self::staticGet('uri', $notice->uri);
+        return self::getKV('uri', $notice->uri);
     }
 
     public function getNotice()
     {
-        return Notice::staticGet('uri', $this->uri);
+        return Notice::getKV('uri', $this->uri);
     }
 
     public static function schemaDef()