PHP Class Horde_Core_Ui_JsCalendar, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Michael Slusarz ([email protected])
Mostra file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_initRun boolean Make sure init() is only run once.

Public Methods

Method Description
fullWeekdays ( ) : array Return the list of localized full weekday names.
init ( array $params = [] ) Output the necessary javascript code to allow display of the calendar widget.
months ( ) : array Return the localized list of months.
weekdays ( ) : array Return the list of localized abbreviated weekdays.

Method Details

fullWeekdays() public static method

Return the list of localized full weekday names.
public static fullWeekdays ( ) : array
return array Full weekday names.

init() public static method

Output the necessary javascript code to allow display of the calendar widget.
public static init ( array $params = [] )
$params 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() public static method

Return the localized list of months.
public static months ( ) : array
return array Month list.

weekdays() public static method

Return the list of localized abbreviated weekdays.
public static weekdays ( ) : array
return array Abbreviated weekdays.

Property Details

$_initRun protected_oe static_oe property

Make sure init() is only run once.
protected static bool $_initRun
return boolean