constructor Calendar_Year::Calendar_Year | Calendar_Month |
Calendar | |
PEAR Manual | |
require_once 'Year.php'; |
boolean Calendar_Year::build (
array$sDates = array()
, int$firstDay = NULL
)
Note: by defining the constant CALENDAR_MONTH_STATE you can control what class of Calendar_Month is built e.g.;
1 require_once 'Calendar/Calendar_Year.php'; 2 define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKDAYS); // Use Calendar_Month_Weekdays 3 // define ('CALENDAR_MONTH_STATE',CALENDAR_USE_MONTH_WEEKS); // Use Calendar_Month_Weeks 4 |
(optional) array of Calendar_Month objects representing selected months
(optional) first day of week (e.g. 0 for Sunday, 2 for Tuesday etc.)
throws no exceptions thrown
This function can not be called statically.
constructor Calendar_Year::Calendar_Year | Calendar_Month |
Calendar | |
PEAR Manual | |