[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] SF.net SVN: squirrelmail:[14629] branches/SM-1_4-STABLE/squirrelmail/ functions/abook_datab
From: pdontthink () users ! sourceforge ! net
Date: 2016-12-10 11:05:20
Message-ID: E1cFfT2-00078U-Bt () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 14629
http://sourceforge.net/p/squirrelmail/code/14629
Author: pdontthink
Date: 2016-12-10 11:05:20 +0000 (Sat, 10 Dec 2016)
Log Message:
-----------
Add PHP5-style constructor
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php
Modified: branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php 2016-12-10 \
11:05:08 UTC (rev 14628)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/abook_database.php 2016-12-10 \
11:05:20 UTC (rev 14629) @@ -142,10 +142,10 @@
/* ========================== Private ======================= */
/**
- * Constructor
+ * Constructor (PHP5 style, required in some future version of PHP)
* @param array $param address book backend options
*/
- function abook_database($param) {
+ function __construct($param) {
$this->sname = _("Personal address book");
if (is_array($param)) {
@@ -191,6 +191,13 @@
}
}
+ /**
+ * Constructor (PHP4 style, kept for compatibility reasons)
+ * @param array $param address book backend options
+ */
+ function abook_database($param) {
+ return self::__construct($param);
+ }
/**
* Open the database.
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