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 492d864..c14f17d 100644 (file)
@@ -38,7 +38,7 @@ class Period {
        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)) {
index a13104d..1f8aceb 100644 (file)
@@ -29,7 +29,7 @@
 class ActionErrors {
     var $errors = array();
 
-    function ActionErrors() {
+    function __construct() {
     }
 
     function no() {
index 03994dd..739cc3a 100644 (file)
@@ -36,7 +36,7 @@ class ActionForm {
     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);
index dd6e83a..46fcd6e 100644 (file)
@@ -47,7 +47,7 @@ class Calendar extends FormElement {
     // 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');
index 6cd8074..5ba7916 100644 (file)
@@ -33,7 +33,7 @@ class Checkbox extends FormElement {
     var $mOptions      = null;
     var $cClassName            = "Checkbox";
 
-       function Checkbox($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index 46ea284..f9d850f 100644 (file)
@@ -39,7 +39,7 @@ class CheckboxGroup extends FormElement {
     var $lSelAll       = "All";
     var $lSelNone      = "None";
 
-       function CheckboxGroup($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index 534c8a5..dcb84a2 100644 (file)
@@ -46,7 +46,7 @@ class Combobox extends FormElement {
     var $mDataKeys = array();
     var $cClassName    = "Combobox";
 
-       function Combobox($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index 7fbbcbc..7d38869 100644 (file)
@@ -39,7 +39,7 @@ class DateField extends TextField {
 
   var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
 
-  function DateField($name) {
+  function __construct($name) {
     $this->mName  = $name;
     $this->mDateObj  = new DateAndTime();
 
index 46bdb6d..14c30df 100644 (file)
@@ -33,7 +33,7 @@ class FloatField extends TextField {
        var $mFFormat;
        var $cClassName = "FloatField";
 
-       function FloatField($name) {
+       function __construct($name) {
                $this->mName    = $name;
        }
        
index 2c65035..facfffc 100644 (file)
@@ -31,7 +31,7 @@ import('form.FormElement');
 class Submit extends FormElement {
        var $cClassName = "Submit";
 
-       function Submit($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
index fd63ce6..bb47a00 100644 (file)
@@ -12,7 +12,7 @@
       <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>