Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: TimeZoneConfig

Source Location: /system/classes/timezoneconfig.class.php

Class Overview


Geeklog Time Zone Config class


Author(s):

  • Dirk Haun, dirk AT haun-online DOT de

Methods



Class Details

[line 44]
Geeklog Time Zone Config class

A collection of static (for now) methods dealing with time zone handling.

For the original "Timezone Hack" discussion, see




Tags:

author:  Dirk Haun, dirk AT haun-online DOT de
link:  http://www.geeklog.net/forum/viewtopic.php?showtopic=21232


[ Top ]


Class Methods


static method getTimeZoneDropDown [line 150]

static string getTimeZoneDropDown( [string $selected = ''], [array $attributes = array()])

Provide a dropdown menu of the available timezones



Tags:

return:  HTML for the dropdown
access:  public


Parameters:

string   $selected   (optional) currently selected timezone
array   $attributes   (optional) extra attributes for select tag

[ Top ]

static method getUserTimeZone [line 116]

static string getUserTimeZone( )

Get the user's preferred timezone



Tags:

return:  name of the timezone
access:  public


[ Top ]

static method listAvailableTimeZones [line 179]

static array listAvailableTimeZones( )

Provide a list of available timezones



Tags:

return:  array of (timezone-short-name, timezone-long-name) pairs
access:  public


[ Top ]

static method setSystemTimeZone [line 54]

static void setSystemTimeZone( [string $tz = ''])

Set the system's timezone



Tags:

access:  public


Parameters:

string   $tz   timezone to set; use $_CONF['timezone'] if empty

[ Top ]

static method setUserTimeZone [line 97]

static void setUserTimeZone( )

Set the user's preferred timezone

Note that it does nothing if $_CONF['timezone'] is empty, i.e. if no system timezone is defined, we don't set a user timezone either.




Tags:

access:  public


[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:56:16 +0000 by phpDocumentor 1.4.3