From: Nik Okuntseff Date: Tue, 13 Sep 2016 00:31:58 +0000 (+0000) Subject: Getting rid of PHP Deprecated warnings. X-Git-Tag: timetracker_1.19-1~1648 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=466c7825f8313f5e3a11c63383537c8bb302a932;p=timetracker.git Getting rid of PHP Deprecated warnings. --- diff --git a/WEB-INF/lib/DateAndTime.class.php b/WEB-INF/lib/DateAndTime.class.php index f4e18bec..d960f008 100644 --- a/WEB-INF/lib/DateAndTime.class.php +++ b/WEB-INF/lib/DateAndTime.class.php @@ -197,7 +197,7 @@ class DateAndTime { * @param String $strfDateTime * @return DateAndTime */ - function DateAndTime($format="",$strfDateTime="") { + function __construct($format="",$strfDateTime="") { $this->mLocalFormat = ($format ? $format : $this->mIntrFormat); $d = ($strfDateTime ? $strfDateTime : $this->do_strftime($this->mLocalFormat)); $this->parseVal($d); diff --git a/WEB-INF/lib/auth/Auth_ldap.class.php b/WEB-INF/lib/auth/Auth_ldap.class.php index b3f5d52a..625c4782 100644 --- a/WEB-INF/lib/auth/Auth_ldap.class.php +++ b/WEB-INF/lib/auth/Auth_ldap.class.php @@ -51,7 +51,7 @@ class Auth_ldap extends Auth { var $params; - function Auth_ldap($params) + function __construct($params) { $this->params = $params; if (isset($GLOBALS['smarty'])) { diff --git a/WEB-INF/lib/form/DefaultCellRenderer.class.php b/WEB-INF/lib/form/DefaultCellRenderer.class.php index 2813a36d..1e36f79b 100644 --- a/WEB-INF/lib/form/DefaultCellRenderer.class.php +++ b/WEB-INF/lib/form/DefaultCellRenderer.class.php @@ -32,8 +32,7 @@ class DefaultCellRenderer { var $mWidth = null; var $mOnChangeAdd = null; - function DefaultCellRenderer() { - + function __construct() { } function getValue() { return $this->mCellValue; } diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index 6fb6ce12..6b663a9e 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -45,7 +45,7 @@ class Form { var $mRequest; // var $mFormBean; - function Form($formid) { + function __construct($formid) { $this->formName = $formid; } diff --git a/WEB-INF/lib/form/FormElement.class.php b/WEB-INF/lib/form/FormElement.class.php index c576451c..bc41016f 100644 --- a/WEB-INF/lib/form/FormElement.class.php +++ b/WEB-INF/lib/form/FormElement.class.php @@ -48,7 +48,7 @@ class FormElement { var $cClassName = "FormElement"; var $mI18n = null; - function FormElement() { + function __construct() { } function getClass() { return $this->cClassName; } diff --git a/WEB-INF/lib/form/Hidden.class.php b/WEB-INF/lib/form/Hidden.class.php index 3530f1ba..84837467 100644 --- a/WEB-INF/lib/form/Hidden.class.php +++ b/WEB-INF/lib/form/Hidden.class.php @@ -32,7 +32,7 @@ class Hidden extends FormElement { var $mValue; var $cClassName = "Hidden"; - function Hidden($name,$value="") + function __construct($name,$value="") { $this->mName = $name; $this->mValue = $value; diff --git a/WEB-INF/lib/form/Table.class.php b/WEB-INF/lib/form/Table.class.php index 12b356a8..b41a1f12 100644 --- a/WEB-INF/lib/form/Table.class.php +++ b/WEB-INF/lib/form/Table.class.php @@ -47,7 +47,7 @@ class Table extends FormElement { var $mHeaderOptions = array(); var $mProccessed = false; - function Table($name, $value='') { + function __construct($name, $value='') { $this->mName = $name; $this->mValue = $value; } diff --git a/WEB-INF/lib/form/TableColumn.class.php b/WEB-INF/lib/form/TableColumn.class.php index aa1ec4b1..06cad051 100644 --- a/WEB-INF/lib/form/TableColumn.class.php +++ b/WEB-INF/lib/form/TableColumn.class.php @@ -37,7 +37,7 @@ class TableColumn { var $mBgColor = "#ffffff"; var $mFgColor = "#000000"; - function TableColumn($indexField, $title="",$renderer=null) { + function __construct($indexField, $title="",$renderer=null) { $this->mIndexField = $indexField; $this->mTitle = $title; if ($renderer!=null) { diff --git a/WEB-INF/lib/form/TextArea.class.php b/WEB-INF/lib/form/TextArea.class.php index 887f8ad4..be0c8caa 100644 --- a/WEB-INF/lib/form/TextArea.class.php +++ b/WEB-INF/lib/form/TextArea.class.php @@ -35,7 +35,7 @@ class TextArea extends FormElement { var $mRows = ""; var $cClassName = "TextArea"; - function TextArea($name,$value="") + function __construct($name,$value="") { $this->mName = $name; $this->mValue = $value; diff --git a/WEB-INF/lib/form/TextField.class.php b/WEB-INF/lib/form/TextField.class.php index fdd022a9..a409410f 100644 --- a/WEB-INF/lib/form/TextField.class.php +++ b/WEB-INF/lib/form/TextField.class.php @@ -33,7 +33,7 @@ class TextField extends FormElement { var $mPassword = false; var $cClassName = "TextField"; - function TextField($name,$value="") + function __construct($name,$value="") { $this->mName = $name; $this->mValue = $value; diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php index ad3f21fa..1055125d 100644 --- a/WEB-INF/lib/form/UploadFile.class.php +++ b/WEB-INF/lib/form/UploadFile.class.php @@ -33,7 +33,7 @@ class UploadFile extends FormElement { var $cClassName = "UploadFile"; var $mMaxSize = 100000; // 100kb - function UploadFile($name,$value="") + function __construct($name,$value="") { $this->mName = $name; $this->mValue = $value; diff --git a/WEB-INF/lib/mail/Mailer.class.php b/WEB-INF/lib/mail/Mailer.class.php index 1b84e745..eb4e7f9a 100644 --- a/WEB-INF/lib/mail/Mailer.class.php +++ b/WEB-INF/lib/mail/Mailer.class.php @@ -9,7 +9,7 @@ class Mailer { var $mReceiver; var $mReceiverCC; - function Mailer($type='standard') { + function __construct($type='standard') { $this->mSendType = $type; } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index bb47a00d..85297683 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.31.3533 | Copyright © Anuko | +  Anuko Time Tracker 1.9.31.3534 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}