|
@@ -92,11 +92,11 @@ class abook_local_file extends addressbook_backend {
|
|
/* ========================== Private ======================= */
|
|
/* ========================== Private ======================= */
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Constructor
|
|
|
|
|
|
+ * Constructor (PHP5 style, required in some future version of PHP)
|
|
* @param array $param backend options
|
|
* @param array $param backend options
|
|
* @return bool
|
|
* @return bool
|
|
*/
|
|
*/
|
|
- function abook_local_file($param) {
|
|
|
|
|
|
+ function __construct($param) {
|
|
$this->sname = _("Personal Address Book");
|
|
$this->sname = _("Personal Address Book");
|
|
$this->umask = Umask();
|
|
$this->umask = Umask();
|
|
|
|
|
|
@@ -139,6 +139,15 @@ class abook_local_file extends addressbook_backend {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Constructor (PHP4 style, kept for compatibility reasons)
|
|
|
|
+ * @param array $param backend options
|
|
|
|
+ * @return bool
|
|
|
|
+ */
|
|
|
|
+ function abook_local_file($param) {
|
|
|
|
+ return self::__construct($param);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Open the addressbook file and store the file pointer.
|
|
* Open the addressbook file and store the file pointer.
|
|
* Use $file as the file to open, or the class' own
|
|
* Use $file as the file to open, or the class' own
|