Class

MiniCalendar

Package: Util Copyright: © 2005-2019 PHPBoost License: GNU/GPL-3.0 Author: Benoit SAUTEL ben.popeye@phpboost.com Version: PHPBoost 5.2 - last update: 2018 11 19 Since: PHPBoost 2.0 - 2008 06 03 Contributor: Julien BRISWALTER j1.seth@phpboost.com Contributor: Arnaud GENET elenwii@phpboost.com Contributor: Sebastien LARTIGUE babsolune@phpboost.com 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
public
# __construct( string $html_id, Date $date = null )

Builds a calendar which will be displayable.

public
# set_date( Date $date )

Sets the date at which will be initialized the calendar.

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