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

File: 10.php

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


Decorates any calendar class.

Page Details:


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 Wed, 09 Dec 2015 22:48:59 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.