Package: Util Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL Version: PHPBoost 5.2 - last update: 2018 11 19 Since: PHPBoost 2.0 - 2008 06 03 Contributor: Julien BRISWALTER Contributor: Arnaud GENET Contributor: Sebastien LARTIGUE Located at: util/MiniCalendar.class.php

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.

Methods summary
# __construct( string $html_id, Date $date = null )

Builds a calendar which will be displayable.

# set_date( Date $date )

Sets the date at which will be initialized the calendar.

# 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.

public Date
# get_date( )

Returns the date

public string
# display( )

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.

public static Date
# retrieve_date( string $calendar_name )

Retrieves a date entered in a mini calendar.