silverorange Code


Swat.SwatDateCellRenderer
/Swat/SwatDateCellRenderer.php at line 16

Class SwatDateCellRenderer

SwatObject
└─SwatUIObject
└─SwatCellRenderer
└─SwatDateCellRenderer

public class SwatDateCellRenderer
extends SwatCellRenderer

A text renderer.

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
string|SwatDate|Date

$date

Date to render.

string|Date_TimeZone

$display_time_zone

The time zone to render the date in.

mixed

$format

Format.

integer

$time_zone_format

Time Zone Format.

Fields inherited from Swat.SwatCellRenderer
id, sensitive
Fields inherited from Swat.SwatUIObject
classes, html_head_entry_set, parent, visible
Method Summary
void

render()

Renders the contents of this cell.

Methods inherited from Swat.SwatCellRenderer
getBaseCSSClassNames, getDataSpecificCSSClassNames, getHtmlHeadEntrySet, getInheritanceCSSClassNames, getInlineJavaScript, getMessages, getPropertyNameToMap, hasMessage, init, isPropertyStatic, makePropertyStatic, process, render
Methods inherited from Swat.SwatUIObject
addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible

Field Detail

/Swat/SwatDateCellRenderer.php at line 28

date

public string|SwatDate|Date $date = null

Date to render

This may either be a Date object, or may be an ISO-formatted date string that can be passed into the SwatDate constructor.


/Swat/SwatDateCellRenderer.php at line 58

display_time_zone

public string|Date_TimeZone $display_time_zone = null

The time zone to render the date in

The time zone may be specified either as a time zone identifier valid for PEAR::Date_TimeZone or as a Date_TimeZone object. If the render time zone is null, no time zone conversion is performed.


/Swat/SwatDateCellRenderer.php at line 38

format

public mixed $format = SwatDate::DF_DATE_TIME

Format

Either a SwatDate format mask, or class constant. Class constants are preferable for sites that require translation.


/Swat/SwatDateCellRenderer.php at line 47

time_zone_format

public integer $time_zone_format = null

Time Zone Format

A time zone format class constant from SwatDate.


Method Detail

/Swat/SwatDateCellRenderer.php at line 68

render

public void render()

Renders the contents of this cell

See Also:
SwatCellRenderer::render()

silverorange Code