Source for file 18.php
Documentation is available at 18.php
* Description: demonstrates using the Wrapper decorator
if (!@include 'Calendar/Calendar.php') {
define ('CALENDAR_ROOT', '../../');
require_once CALENDAR_ROOT. 'Month.php';
require_once CALENDAR_ROOT. 'Decorator.php'; // Not really needed but added to help this make sense
require_once CALENDAR_ROOT. 'Decorator/Wrapper.php';
return '<b>'.parent ::thisDay(). '</b>';
echo '<h2>The Wrapper decorator</h2>';
echo '<i>Day numbers are rendered in bold</i><br /> <br />';
while ($DecoratedDay = $Wrapper->fetch('MyBoldDecorator')) {
echo $DecoratedDay->thisDay(). '<br />';
Documentation generated on Mon, 11 Mar 2019 15:37:47 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|