Source for file 23.php
Documentation is available at 23.php
* Description: demonstrates using the Textual util
if (!@include 'Calendar'.DIRECTORY_SEPARATOR. 'Calendar.php') {
define ('CALENDAR_ROOT', '../../');
require_once CALENDAR_ROOT. 'Day.php';
require_once CALENDAR_ROOT. 'Month'.DIRECTORY_SEPARATOR. 'Weekdays.php';
require_once CALENDAR_ROOT. 'Util'.DIRECTORY_SEPARATOR. 'Textual.php';
// Could change language like this
// setlocale (LC_TIME, "de_DE"); // Unix based (probably)
// setlocale (LC_TIME, "ge"); // Windows
echo "<hr>Calling: Calendar_Util_Textual::monthNames('long');<pre>";
echo "<hr>Calling: Calendar_Util_Textual::weekdayNames('two');<pre>";
echo "<hr>Creating: new Calendar_Day(date('Y'), date('n'), date('d'));<br />";
echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week<br />";
<p>Rendering calendar....</p>
foreach ($dayheaders as $dayheader) {
echo '<th>'. $dayheader. '</th>';
while ($Day = $Calendar->fetch ()) {
echo '<td>'. $Day->thisDay (). '</td>';
Documentation generated on Mon, 11 Mar 2019 15:37:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|