From 65c9fbb439c32ac734bd958c401714d9b1346e42 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 19 Nov 2010 15:05:09 -0700 Subject: [PATCH] IMP_Compose::__toString() returns cache ID --- imp/lib/Compose.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 674c4a518..cfab51276 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -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. -- 2.11.0