]> wagnertech.de Git - timetracker.git/commitdiff
Getting rid of PHP Deprecated warnings.
authorNik Okuntseff <support@anuko.com>
Mon, 12 Sep 2016 23:56:59 +0000 (23:56 +0000)
committerNik Okuntseff <support@anuko.com>
Mon, 12 Sep 2016 23:56:59 +0000 (23:56 +0000)
WEB-INF/lib/Period.class.php
WEB-INF/lib/form/ActionErrors.class.php
WEB-INF/lib/form/ActionForm.class.php
WEB-INF/lib/form/Calendar.class.php
WEB-INF/lib/form/Checkbox.class.php
WEB-INF/lib/form/CheckboxGroup.class.php
WEB-INF/lib/form/Combobox.class.php
WEB-INF/lib/form/DateField.class.php
WEB-INF/lib/form/FloatField.class.php
WEB-INF/lib/form/Submit.class.php
WEB-INF/templates/footer.tpl

index 492d864bbd78a680f2f7fe7ebe29affe0c917d82..c14f17d531f90c4754fdd13d972afd83a5ff41bf 100644 (file)
@@ -38,7 +38,7 @@ class Period {
        var $mBeginDate;
        var $mEndDate;
 
        var $mBeginDate;
        var $mEndDate;
 
-       function Period($period_name=0, $date_point=null) {
+       function __construct($period_name=0, $date_point=null) {
                global $user;
                
                if (!$date_point || !($date_point instanceof DateAndTime)) {
                global $user;
                
                if (!$date_point || !($date_point instanceof DateAndTime)) {
index a13104d7349f446649fc9fdb4f81df605fa7a8c2..1f8aceb3dba6f0063cc7f8e9bbd2e5bac5d7c6cd 100644 (file)
@@ -29,7 +29,7 @@
 class ActionErrors {
     var $errors = array();
 
 class ActionErrors {
     var $errors = array();
 
-    function ActionErrors() {
+    function __construct() {
     }
 
     function no() {
     }
 
     function no() {
index 03994dd565cd7b9f8230a85a9e4f1a741fff3c0f..739cc3aa016bce6be2959a61eb052305530302a6 100644 (file)
@@ -36,7 +36,7 @@ class ActionForm {
     var $mForm         = null;
     var $mInitForm     = false;
 
     var $mForm         = null;
     var $mInitForm     = false;
 
-    function ActionForm($name, &$form, $request=null) {
+    function __construct($name, &$form, $request=null) {
        $this->setName($name);
        $form->setRequest($request);
                $this->setForm($form);
        $this->setName($name);
        $form->setRequest($request);
                $this->setForm($form);
index dd6e83ab1a2e264e806226a4cda72b0122110565..46fcd6eba460a0db0932a3be7eddde3a0f78a9bd 100644 (file)
@@ -47,7 +47,7 @@ class Calendar extends FormElement {
     // var $mAllDays       = true;
     var $cClassName    = "Calendar";
 
     // var $mAllDays       = true;
     var $cClassName    = "Calendar";
 
-    function Calendar($name) {
+    function __construct($name) {
         $this->controlName = $name;
         $this->mMonthNames = array('January','February','March','April','May','June','July','August','September','October','November','December');
         $this->mWeekDayShortNames = array('Su','Mo','Tu','We','Th','Fr','Sa');
         $this->controlName = $name;
         $this->mMonthNames = array('January','February','March','April','May','June','July','August','September','October','November','December');
         $this->mWeekDayShortNames = array('Su','Mo','Tu','We','Th','Fr','Sa');
index 6cd80740d34ec55c67275d89bf2f60edb2be9790..5ba7916513402b7c154b2d9f577ad731f30e5ba7 100644 (file)
@@ -33,7 +33,7 @@ class Checkbox extends FormElement {
     var $mOptions      = null;
     var $cClassName            = "Checkbox";
 
     var $mOptions      = null;
     var $cClassName            = "Checkbox";
 
-       function Checkbox($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index 46ea284bce62b874dbc86fa80d842b78c2ab719a..f9d850fc2273ddd67452f7e69d308488deb8962a 100644 (file)
@@ -39,7 +39,7 @@ class CheckboxGroup extends FormElement {
     var $lSelAll       = "All";
     var $lSelNone      = "None";
 
     var $lSelAll       = "All";
     var $lSelNone      = "None";
 
-       function CheckboxGroup($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index 534c8a50b208a1084a08cdc2f6f1fbb451f5cd5b..dcb84a24c1607c7808f1fe04e4ba7b5bdfc1a937 100644 (file)
@@ -46,7 +46,7 @@ class Combobox extends FormElement {
     var $mDataKeys = array();
     var $cClassName    = "Combobox";
 
     var $mDataKeys = array();
     var $cClassName    = "Combobox";
 
-       function Combobox($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index 7fbbcbc5360f8a8d83feb9f42ba28b6fe2c87c3d..7d3886954f1f1f4b217aba8ce882d9af1fba6552 100644 (file)
@@ -39,7 +39,7 @@ class DateField extends TextField {
 
   var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
 
 
   var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
 
-  function DateField($name) {
+  function __construct($name) {
     $this->mName  = $name;
     $this->mDateObj  = new DateAndTime();
 
     $this->mName  = $name;
     $this->mDateObj  = new DateAndTime();
 
index 46bdb6d6f5f9d4c1904bd09bb3b4d4a9df8d3dbb..14c30df24e537b585465809c4d477f6dedeacbc7 100644 (file)
@@ -33,7 +33,7 @@ class FloatField extends TextField {
        var $mFFormat;
        var $cClassName = "FloatField";
 
        var $mFFormat;
        var $cClassName = "FloatField";
 
-       function FloatField($name) {
+       function __construct($name) {
                $this->mName    = $name;
        }
        
                $this->mName    = $name;
        }
        
index 2c65035e4130569b862f77d9cb0fbcb9c1e52c23..facfffc811a05245b46724c12482da02dbe40453 100644 (file)
@@ -31,7 +31,7 @@ import('form.FormElement');
 class Submit extends FormElement {
        var $cClassName = "Submit";
 
 class Submit extends FormElement {
        var $cClassName = "Submit";
 
-       function Submit($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index fd63ce69c3c7d39f7692214c2c5395d9d26426c4..bb47a00d4cf4bc895f4578e700d8328311b736cc 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.9.31.3532 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.9.31.3533 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>