The date should always be UTC. The offset is
retrieved from the registry unless a custom offset is provided.
Parameters
date
Date and time (UTC), supports RFC822,
ISO8601, and Unix time stamps
[format] Date format; default is DATE_FORMAT_LC
[offset] Number of hours offset from UTC
Returns Date string
Rendering Output
[ 196 ]
Tooltip
Gets some XHTML, either an image or a text string, which when displayed in a browser
displays a tooltip. In order for this type to work as expected it is necessary to invoke
JHTML::_('behavior.tooltip').
If we want to modify the appearance of the tooltips, we can redefine the CSS for .tooltip,
.tool-title, and .tool-text.
Parameters tooltip Tooltip content
[title] Title of the tooltip
[image]
Image to use, must be located in includes/js/
ThemeOffice
[text] Text to use instead of an image
[href] Internal link
[link] True if link is enabled; default is true
Returns A string or image with a tooltip
Calendar
Gets an XHTML form field that can be easily used to select a date
Parameters value Initial date value
name Input name
id Input ID
[format] Format in which to display dates
[attribs] Associative array of additional input tag attributes
Returns XHTML date text form field with an attached JavaScript calendar
Behavior
These types are special because they deal with JavaScript in order to create clientside
behaviors.
Pages:
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273