Stream options were forgot here
[squirrelmail.git] / class / mime / Disposition.class.php
index 7b3755d058fd26e147b3e4d38f6f846184a905ff..80eb36c619d42fcda9f00167c91027f36d7b01be 100644 (file)
@@ -3,25 +3,48 @@
 /**
  * Disposition.class.php
  *
- * Copyright (c) 2003-2005 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This contains functions needed to handle mime messages.
+ * This file contains functions needed to handle content disposition headers 
+ * in mime messages. See RFC 2183.
  *
+ * @copyright 2003-2018 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
+ * @subpackage mime
+ * @since 1.3.2
  */
 
 /**
- * Undocumented class
+ * Class that handles content disposition header
  * @package squirrelmail
+ * @subpackage mime
+ * @since 1.3.0
+ * @todo FIXME: do we have to declare vars ($name and $properties)?
  */
 class Disposition {
-    function Disposition($name) {
+    /**
+     * Constructor (PHP5 style, required in some future version of PHP)
+     * @param string $name
+     */
+    function __construct($name) {
        $this->name = $name;
        $this->properties = array();
     }
 
+    /**
+     * Constructor (PHP4 style, kept for compatibility reasons)
+     * @param string $name
+     */
+    function Disposition($name) {
+       self::__construct($name);
+    }
+
+    /**
+     * Returns value of content disposition property
+     * @param string $par content disposition property name
+     * @return string
+     * @since 1.3.1
+     */
     function getProperty($par) {
         $value = strtolower($par);
         if (isset($this->properties[$par])) {
@@ -30,5 +53,3 @@ class Disposition {
         return '';
     }
 }
-
-?>
\ No newline at end of file