X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FDateField.class.php;h=ecfdaf92b67308db3b4558c465af48e2c61f835a;hb=ad707342d0ab5a7f6fc6ceda9ba3deb408f5ac08;hp=320d5240d498c09c724ecd495e51c6edca64d193;hpb=a4d1c5627c3958245ea7e2e573267e34f5872471;p=timetracker.git diff --git a/WEB-INF/lib/form/DateField.class.php b/WEB-INF/lib/form/DateField.class.php index 320d5240..ecfdaf92 100644 --- a/WEB-INF/lib/form/DateField.class.php +++ b/WEB-INF/lib/form/DateField.class.php @@ -33,15 +33,14 @@ class DateField extends TextField { var $mWeekStartDay = 0; var $mDateFormat = "d/m/Y"; var $lToday = "Today"; - var $mDateObj; - var $class = 'DateField'; var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close'); function __construct($name) { - $this->name = $name; - $this->mDateObj = new DateAndTime(); + $this->class = 'DateField'; + $this->name = $name; + $this->mDateObj = new DateAndTime(); if (isset($GLOBALS["I18N"])) { $this->localize($GLOBALS["I18N"]); @@ -80,7 +79,7 @@ class DateField extends TextField { } } - function toStringControl() { + function getHtml() { if (!$this->isEnabled()) { $html = htmlspecialchars($this->getValue()).