adding zend project folders into old campcaster.
This commit is contained in:
parent
56abfaf28e
commit
7ef0c18b26
4045 changed files with 1054952 additions and 0 deletions
24
library/pear/Calendar/docs/examples/19.php
Normal file
24
library/pear/Calendar/docs/examples/19.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Description: demonstrates using the Weekday decorator
|
||||
*/
|
||||
if (!@include 'Calendar'.DIRECTORY_SEPARATOR.'Calendar.php') {
|
||||
define('CALENDAR_ROOT', '../../');
|
||||
}
|
||||
require_once CALENDAR_ROOT.'Day.php';
|
||||
require_once CALENDAR_ROOT.'Decorator/Weekday.php';
|
||||
|
||||
$Day = new Calendar_Day(date('Y'), date('n'),date('d'));
|
||||
$WeekDay = & new Calendar_Decorator_Weekday($Day);
|
||||
// $WeekDay->setFirstDay(0); // Make Sunday first Day
|
||||
|
||||
echo 'Yesterday: '.$WeekDay->prevWeekDay().'<br>';
|
||||
echo 'Today: '.$WeekDay->thisWeekDay().'<br>';
|
||||
echo 'Tomorrow: '.$WeekDay->nextWeekDay().'<br>';
|
||||
|
||||
$WeekDay->build();
|
||||
echo 'Hours today:<br>';
|
||||
while ( $Hour = $WeekDay->fetch() ) {
|
||||
echo $Hour->thisHour().'<br>';
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue