]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/File_to_post.php
Moved multiGet into Managed_DataObject
[quix0rs-gnu-social.git] / classes / File_to_post.php
index 35d1a0dd545ff5e638463a9968fe65593c4dacad..e53b1ebb4cfa38dc14b6a629ff7cd9f2487d1712 100644 (file)
@@ -69,7 +69,7 @@ class File_to_post extends Managed_DataObject
                 $f2p->post_id = $notice_id;
                 $f2p->insert();
                 
-                $f = File::staticGet($file_id);
+                $f = File::getKV($file_id);
 
                 if (!empty($f)) {
                     $f->blowCache();
@@ -84,14 +84,9 @@ class File_to_post extends Managed_DataObject
         }
     }
 
-    function pkeyGet($kv)
-    {
-        return Memcached_DataObject::pkeyGet('File_to_post', $kv);
-    }
-
     function delete()
     {
-        $f = File::staticGet('id', $this->file_id);
+        $f = File::getKV('id', $this->file_id);
         if (!empty($f)) {
             $f->blowCache();
         }