Better @return description for getEmbeddedMimeParts()
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 28 Oct 2009 21:49:59 +0000 (15:49 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 29 Oct 2009 02:26:16 +0000 (20:26 -0600)
Also, the plain driver should extend _getEmbeddedMimeParts(), not the
public getEmbeddedMimeParts().

imp/lib/Mime/Viewer/Partial.php
imp/lib/Mime/Viewer/Pgp.php
imp/lib/Mime/Viewer/Plain.php

index 6f0a2d2..9f5b24b 100644 (file)
@@ -31,8 +31,10 @@ class IMP_Horde_Mime_Viewer_Partial extends Horde_Mime_Viewer_Driver
      * MIME parts exist, return a list of MIME parts that contain the embedded
      * MIME part information.
      *
-     * @return array  An array of Horde_Mime_Part objects, with the key as
-     *                the ID, or null if no embedded MIME parts exist.
+     * @return mixed  An array with MIME IDs as the keys and Horde_Mime_Part
+     *                objects as the parts to replace the current value of
+     *                the given MIME ID.
+     *                Returns null if no embedded MIME parts exist.
      */
     protected function _getEmbeddedMimeParts()
     {
index e225295..a3ca197 100644 (file)
@@ -106,8 +106,10 @@ class IMP_Horde_Mime_Viewer_Pgp extends Horde_Mime_Viewer_Driver
      * MIME parts exist, return an altered version of the Horde_Mime_Part that
      * contains the embedded MIME part information.
      *
-     * @return mixed  A Horde_Mime_Part with the embedded MIME part information
-     *                or null if no embedded MIME parts exist.
+     * @return mixed  An array with MIME IDs as the keys and Horde_Mime_Part
+     *                objects as the parts to replace the current value of
+     *                the given MIME ID.
+     *                Returns null if no embedded MIME parts exist.
      */
     protected function _getEmbeddedMimeParts()
     {
index 37b967c..bdd72f5 100644 (file)
@@ -137,10 +137,12 @@ class IMP_Horde_Mime_Viewer_Plain extends Horde_Mime_Viewer_Plain
      * MIME parts exist, return a list of MIME parts that contain the embedded
      * MIME part information.
      *
-     * @return mixed  An array of Horde_Mime_Part objects, with the key as
-     *                the ID, or null if no embedded MIME parts exist.
+     * @return mixed  An array with MIME IDs as the keys and Horde_Mime_Part
+     *                objects as the parts to replace the current value of
+     *                the given MIME ID.
+     *                Returns null if no embedded MIME parts exist.
      */
-    public function getEmbeddedMimeParts()
+    protected function _getEmbeddedMimeParts()
     {
         $ret = null;