previousconstructeur Calendar_Year::Calendar_Year (Previous) (Next) Calendar_Monthnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Calendar_Year::build

Calendar_Year::build() – Construit les mois de l'année.

Synopsis

require_once 'Year.php';

boolean Calendar_Year::build ( array $sDates = array() , int $firstDay = = null )

Description

Note: en définissant la constante CALENDAR_MONTH_STATE vous pouvez controler la classe de Calendar_Month qui est contruite, exemple :

1  require_once 'Calendar/Calendar_Year.php';
    2
define
('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKDAYS); // Utilisation de Calendar_Month_Weekdays
    3  // define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKS); // Utilisation de Calendar_Month_Weeks
    4
par défaut, c'est la classe Calendar_Month qui est construite.

Parameter

array $sDates

(optionnel) tableau d'objets Calendar_Month représentants les mois sélectionnées

integer $firstDay

(optionnel) premier jour de la semaine (0 pour dimanche, 2 pour mardi etc.)

Throws

No exceptions thrown.

Note

This function can not be called statically.

previousconstructeur Calendar_Year::Calendar_Year (Previous) (Next) Calendar_Monthnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.