IMP_Compose::__toString() returns cache ID
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Nov 2010 22:05:09 +0000 (15:05 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Nov 2010 22:05:09 +0000 (15:05 -0700)
imp/lib/Compose.php

index 674c4a5..cfab512 100644 (file)
@@ -2874,7 +2874,17 @@ class IMP_Compose implements ArrayAccess, Countable, Iterator
         $this->changed = 'changed';
     }
 
-    /* Countable methods. */
+    /* Magic methods. */
+
+    /**
+     * String representation: the cache ID.
+     */
+    public function __toString()
+    {
+        return $this->getCacheId();
+    }
+
+    /* Countable method. */
 
     /**
      * Returns the number of attachments currently in this message.