From: Michael M Slusarz Date: Thu, 4 Dec 2008 23:54:39 +0000 (-0700) Subject: Add downloadAllList(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7c604b44d5700c66b2849265edeb219eab16e2ce;p=horde.git Add downloadAllList(). --- diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 9aecb92ea..025f63c51 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -853,4 +853,22 @@ class IMP_Contents { $this->_statuscache[$id][] = $entry; } + + /** + * Get download all list. + * + * @return array An array of downloadable parts. + */ + public function downloadAllList() + { + $ret = array(); + + foreach ($this->getContentTypeMap() as $key => $val) { + if ($this->isAttachment($val)) { + $ret[] = $key; + } + } + + return $ret; + } }