Summary
- File
- Package hierarchy Util
- Class hierarchy \MiniCalendar
This class enables you to retrieve easily a date entered by a user.
If the user isn't in the same timezone as the server, the hour will be automatically recomputed.
This class enables you to retrieve easily a date entered by a user.
If the user isn't in the same timezone as the server, the hour will be automatically recomputed.
__construct( $html_id, \Date $date = null)
Builds a calendar which will be displayable.
$html_id | ||
\Date | $date |
None found |
set_date(\Date $date)
Sets the date at which will be initialized the calendar.
\Date | $date | Date |
None found |
set_style(string $style)
Sets the CSS properties of the element.
You can use it if you want to customize the mini calendar, but the best solution is to redefine the template in your module. The template used is framework/mini_calendar.tpl.
string | $style | The CSS properties |
None found |
get_date() : \Date
Returns the date
the date
None found |
display() : string
Displays the mini calendar. You must call the display method in the same order as the calendars are displayed, because it requires a javascript code loading.
The code to write in the HTML page.
None found |
retrieve_date(string $calendar_name) : \Date
Retrieves a date entered in a mini calendar.
string | $calendar_name | Name of the calendar (HTML identifier). |
The date of the calendar.
None found |
$num_instance : integer
None found |
$style : string
None found |
$html_id : string
None found |
$date : \Date
None found |
$num_instances :
None found |
$js_inclusion_already_done :
None found |