New BananaTree class that can be serialized into its own file.
[banana.git] / banana / feed.inc.php
index 451e229..9f177e7 100644 (file)
@@ -88,7 +88,7 @@ class BananaFeed
         }
         uasort($this->messages, Array('BananaFeed', 'compare'));
         $this->lastupdate = time();
-        $this->writeToFile();
+        $this->saveToFile();
     }
 
     /** Get the spool corresponding with the current settings of Banana
@@ -130,7 +130,7 @@ class BananaFeed
 
     /** Write a feed to a cache file
      */
-    private function writeToFile()
+    private function saveToFile()
     {
         $file = BananaFeed::filename();
         file_put_contents($file, serialize($this));