Calendar
[ class tree: Calendar ] [ index: Calendar ] [ all elements ]

File: 10.php

Source Location: /Calendar-0.5.5/docs/examples/10.php

Classes:

MonthDecorator
Decorates any calendar class.

Page Details:

Includes:

include('Calendar/Calendar.php'){define('CALENDAR_ROOT','../../')) [line 9]
Description: demonstrates a decorator to provide simple output formatting

on the month while still allowing the days to be accessed via the decorator In practice you _wouldn't_ do this - each decorator comes with a performance hit for extra method calls. For this example some simple functions could help format the month while the days are accessed via the normal Month object

require_once(CALENDAR_ROOT.'Month/Weekdays.php') [line 12]
require_once(Decorator.php) [line 13]

Documentation generated on Mon, 11 Mar 2019 15:37:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.