From de9d83fe7e68c251926d985c0a1d2db67ce4fa48 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 10 Nov 2008 22:44:21 -0700 Subject: [PATCH] Add a 'ids' output to render(). This parameter indicates the list of MIME IDs that this viewer's render output was responsible for. --- framework/Mime/lib/Horde/Mime/Viewer/Driver.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Driver.php b/framework/Mime/lib/Horde/Mime/Viewer/Driver.php index 672b7292f..a16de45b6 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/Driver.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/Driver.php @@ -99,6 +99,9 @@ class Horde_Mime_Viewer_Driver * @return array An array with the following elements: *
      * 'data' - (string) The rendered data.
+     * 'ids' - (array) The list of MIME IDs that the rendered data covers
+     *         (e.g. for multipart parts, the base multipart object may
+     *         render all the data needed to display all the subparts)
      * 'status' - (array) An array of status information to be displayed to
      *            the user.  Consists of arrays with the following keys:
      *            'position' - (string) Either 'top' or 'bottom'
@@ -119,6 +122,8 @@ class Horde_Mime_Viewer_Driver
             return $default;
         }
 
+        $default['ids'] = array($this->_mimepart->getMIMEId());
+
         switch ($mode) {
         case 'full':
             $ret = $this->_render();
-- 
2.11.0