Documentation

Horde_Core_Ui_JsCalendar
in package

The Horde_Core_Ui_JsCalendar:: class generates the necessary javascript code to allow the javascript calendar widget to be displayed on the page.

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

Properties

$_initRun  : bool
Make sure init() is only run once.

Methods

fullWeekdays()  : array<string|int, mixed>
Return the list of localized full weekday names.
init()  : mixed
Output the necessary javascript code to allow display of the calendar widget.
months()  : array<string|int, mixed>
Return the localized list of months.
weekdays()  : array<string|int, mixed>
Return the list of localized abbreviated weekdays.

Properties

$_initRun

Make sure init() is only run once.

protected static bool $_initRun = \false

Methods

fullWeekdays()

Return the list of localized full weekday names.

public static fullWeekdays() : array<string|int, mixed>
Return values
array<string|int, mixed>

Full weekday names.

init()

Output the necessary javascript code to allow display of the calendar widget.

public static init([array<string|int, mixed> $params = array() ]) : mixed
Parameters
$params : array<string|int, mixed> = array()

Configuration parameters for the widget:

'click_month' - (boolean) If true, the month is clickable.
                DEFAULT: false
'click_week' - (boolean) If true, will display a clickable week.
               DEFAULT: false
'click_year' - (boolean) If true, the year is clickable.
               DEFAULT: false
'full_weekdays' - (boolean) Add full weekday localized list to
                  javascript object.
                  DEFAULT: false
'short_weekdays' - (boolean) Display only the first letter of
                   weekdays?
                   DEFAULT: false

months()

Return the localized list of months.

public static months() : array<string|int, mixed>
Return values
array<string|int, mixed>

Month list.

weekdays()

Return the list of localized abbreviated weekdays.

public static weekdays() : array<string|int, mixed>
Return values
array<string|int, mixed>

Abbreviated weekdays.


        
On this page

Search results