[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[14612] branches/SM-1_4-STABLE/squirrelmail/class/ mime/Dispositio
From:       pdontthink () users ! sourceforge ! net
Date:       2016-12-10 9:44:05
Message-ID: E1cFeCO-0001N1-5p () sfs-ml-1 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 14612
          http://sourceforge.net/p/squirrelmail/code/14612
Author:   pdontthink
Date:     2016-12-10 09:44:04 +0000 (Sat, 10 Dec 2016)
Log Message:
-----------
Add PHP5-style constructor

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php

Modified: branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php	2016-12-10 \
                09:22:35 UTC (rev 14611)
+++ branches/SM-1_4-STABLE/squirrelmail/class/mime/Disposition.class.php	2016-12-10 \
09:44:04 UTC (rev 14612) @@ -23,15 +23,22 @@
  */
 class Disposition {
     /**
-     * Constructor function
-     * @param string $name
+     * Constructor (PHP5 style, required in some future version of PHP)
      */
-    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
      * @return string

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic