CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
36
airtime_mvc/library/pear/Calendar/docs/examples/18.phps
Normal file
36
airtime_mvc/library/pear/Calendar/docs/examples/18.phps
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?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';
|
||||
|
||||
class MyBoldDecorator extends Calendar_Decorator
|
||||
{
|
||||
function MyBoldDecorator(&$Calendar)
|
||||
{
|
||||
parent::Calendar_Decorator($Calendar);
|
||||
}
|
||||
|
||||
function thisDay()
|
||||
{
|
||||
return '<b>'.parent::thisDay().'</b>';
|
||||
}
|
||||
}
|
||||
|
||||
$Month = new Calendar_Month(date('Y'), date('n'));
|
||||
|
||||
$Wrapper = & new Calendar_Decorator_Wrapper($Month);
|
||||
$Wrapper->build();
|
||||
|
||||
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 />';
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue