projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bac2ea
)
IMP_Compose::__toString() returns cache ID
author
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 19 Nov 2010 22:05:09 +0000
(15:05 -0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Fri, 19 Nov 2010 22:05:09 +0000
(15:05 -0700)
imp/lib/Compose.php
patch
|
blob
|
history
diff --git
a/imp/lib/Compose.php
b/imp/lib/Compose.php
index
674c4a5
..
cfab512
100644
(file)
--- 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.