.

InputWidgetDateBase Class Reference
[View]

A date widget. More...

Inheritance diagram for InputWidgetDateBase:
InputWidgetBase InputWidgetBaseBase IWidget IRenderer InputWidgetDate

List of all members.

Protected Member Functions

  extend_attributes (&$attrs, $params, $name, $title, $value, $policy)
  Add new attributes or process old ones.
  render_input ($attrs, $params, $name, $title, $value, $policy)
  Render the actual widget.

Detailed Description

A date widget.

Author:
Gerd Riesselmann

Definition at line 8 of file date.input.widget.php.


Member Function Documentation

InputWidgetDateBase::extend_attributes ( &$  attrs,
params,
name,
title,
value,
policy  
) [protected]

Add new attributes or process old ones.

Reimplemented from InputWidgetBaseBase.

Definition at line 12 of file date.input.widget.php.

00012                                                                                                {
00013                 if ($value) {
00014                         $value = GyroDate::local_date($value, false);
00015                 }
00016                 $attrs['value'] = $value;
00017                 $attrs['class'] = 'date';
00018         }
InputWidgetDateBase::render_input ( attrs,
params,
name,
title,
value,
policy  
) [protected]

Render the actual widget.

Reimplemented from InputWidgetBaseBase.

Definition at line 23 of file date.input.widget.php.

00023                                                                                          {
00024                 return html::input('text', $name, $attrs);
00025         }       

The documentation for this class was generated from the following file: