The digital_clock class. This is implemented as a 'layer' or 'div'
and rendered using Javascript. UNless you specify the initial time yourself, the time will be taken from the server, rather than from the user's browser, which may be innaccurate. Timezone settings are then used to adjust it to display the appropriate date & time.
Located in /clock-defs.php (line 66)
RenderableObject | --StylableObject | --HTMLObject | --digital_clock
Unique ID for this clock widget
Style or class for date display
Style or class for time digits
Date format eg. 'M d, ccyy' for 'April 4, 2005'
Clock display settings. An array of booleans.
Initial time to set the clock to
X-offset from left
Positioning mode
Y-offset from top
The timezone offset in +/- hours from GMT.
Interval between clock updates in millisecs
Visibility setting
Inherited from HTMLObject
HTMLObject::$accesskey
HTMLObject::$align
HTMLObject::$alt
HTMLObject::$bgcolor
HTMLObject::$bgurl
HTMLObject::$border
HTMLObject::$color
HTMLObject::$height
HTMLObject::$hspace
HTMLObject::$lang
HTMLObject::$langdir
HTMLObject::$linkover_text
HTMLObject::$name
HTMLObject::$onblur
HTMLObject::$onchange
HTMLObject::$onclick
HTMLObject::$ondblclick
HTMLObject::$onfocus
HTMLObject::$onkeydown
HTMLObject::$onkeypress
HTMLObject::$onkeyup
HTMLObject::$onload
HTMLObject::$onmousedown
HTMLObject::$onmousemove
HTMLObject::$onmouseout
HTMLObject::$onmouseover
HTMLObject::$onmouseup
HTMLObject::$onselect
HTMLObject::$size
HTMLObject::$src
HTMLObject::$tabindex
HTMLObject::$target
HTMLObject::$title
HTMLObject::$user_attributes
HTMLObject::$valign
HTMLObject::$vspace
HTMLObject::$width
Inherited from StylableObject
StylableObject::$class
StylableObject::$id
StylableObject::$style
Constructor for the clock
Render the clock.
Set the style of class for the date display
Set the style of class for the time display
Set the format for the date display. This is just done by replacement in a format string where d=month date, M=month name, m=month no, cc=century, and yy=year (99). Eg. 'm d, ccyy' would give 'April 4, 2005'. Another example would be 'd/m/yy' which would render '4/4/05'.
Set a display property for the clock. Display property IDs are defined at the top of this script, and can be any type of content. NB: Boolean properties are so arranged that the default is always false.
Set the position and the positioning directive for the clock.
Set the timezone to use for this clock. The argument should be an integer (or decimal) in the range +12 to -12, in hours offset from GMT.
Special set timezone case - setting to GMT (0 hours offset).
Set the number of seconds to wait before updating the clock each time.
The default value is every second, but if you aren't showing seconds then you might want to offload the browser a little and make it every 30 secs or even longer.
Set the starting visibility for the clock. In case you want to reveal/hide it with some javascript.
Inherited From HTMLObject
HTMLObject::HTMLObject()
HTMLObject::inherit_attributes()
HTMLObject::setaccesskey()
HTMLObject::setalign()
HTMLObject::setalt()
HTMLObject::setbackground()
HTMLObject::setbgcolor()
HTMLObject::setborder()
HTMLObject::setcolor()
HTMLObject::setheight()
HTMLObject::sethspace()
HTMLObject::setlang()
HTMLObject::setlangdir()
HTMLObject::setname()
HTMLObject::setsize()
HTMLObject::setsrc()
HTMLObject::settabindex()
HTMLObject::settarget()
HTMLObject::settitle()
HTMLObject::setvalign()
HTMLObject::setvspace()
HTMLObject::setwidth()
HTMLObject::set_attribute()
HTMLObject::set_linkover_text()
HTMLObject::set_onblur()
HTMLObject::set_onchange()
HTMLObject::set_onclick()
HTMLObject::set_ondblclick()
HTMLObject::set_onfocus()
HTMLObject::set_onkeydown()
HTMLObject::set_onkeypress()
HTMLObject::set_onkeyup()
HTMLObject::set_onload()
HTMLObject::set_onmousedown()
HTMLObject::set_onmousemove()
HTMLObject::set_onmouseout()
HTMLObject::set_onmouseover()
HTMLObject::set_onmouseup()
HTMLObject::set_onselect()
HTMLObject::set_tabindex()
HTMLObject::taghtml()
Inherited From StylableObject
StylableObject::StylableObject()
StylableObject::clearstyle()
StylableObject::setclass()
StylableObject::setcss()
StylableObject::setid()
StylableObject::setstyle()
Inherited From RenderableObject
RenderableObject::RenderableObject()
RenderableObject::html()
RenderableObject::render()
RenderableObject::wml()
RenderableObject::wmlup()
RenderableObject::xml()
Documentation generated by phpDocumentor 1.3.0RC3