00001 <?php
00002
00003
00004
00005
00006
00007
00008 class InputWidgetDateBase extends InputWidgetBase {
00009
00010
00011
00012 protected function extend_attributes(&$attrs, $params, $name, $title, $value, $policy) {
00013 if ($value) {
00014 $value = GyroDate::local_date($value, false);
00015 }
00016 $attrs['value'] = $value;
00017 $attrs['class'] = 'date';
00018 }
00019
00020
00021
00022
00023 protected function render_input($attrs, $params, $name, $title, $value, $policy) {
00024 return html::input('text', $name, $attrs);
00025 }
00026 }