From: Michael M Slusarz Date: Tue, 11 Nov 2008 05:44:21 +0000 (-0700) Subject: Add a 'ids' output to render(). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=de9d83fe7e68c251926d985c0a1d2db67ce4fa48;p=horde.git Add a 'ids' output to render(). This parameter indicates the list of MIME IDs that this viewer's render output was responsible for. --- 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();