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 Thu, 24 Jun 2010 14:00:06 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.