Happy New Year
[squirrelmail.git] / class / mime / Disposition.class.php
index 8550f95bb0ddf78cea14ff179dadcc49ec9afa44..e3e1f663badfcf8b73e0c9b8b2863f95440c0c8e 100644 (file)
@@ -6,7 +6,7 @@
  * This file contains functions needed to handle content disposition headers 
  * in mime messages. See RFC 2183.
  *
- * @copyright 2003-2014 The SquirrelMail Project Team
+ * @copyright 2003-2020 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  */
 class Disposition {
     /**
-     * Constructor function
+     * Constructor (PHP5 style, required in some future version of PHP)
      * @param string $name
      */
-    function Disposition($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