Home » Date and Time » Calendar » Bug #8192
Calendar_Week and isEmpty
Details
| Submitted | 2006-07-12 10:18 UTC |
|---|---|
| From | kodaira313a at yahoo dot co dot jp |
| Assigned | quipo |
| Status | Bogus |
| Package | Calendar |
| PHP Version | 4.3.11 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-07-12 10:18 UTC] kodaira313a at yahoo dot co dot jp
Description:
------------
In the Calendar_Week class, the isEmpty method doesn't become effective.
Please look at the simple Samplcord of the following.
My use might be wrong.
Test script:
---------------
<?php
require_once 'Calendar/Week.php';
$Week = new Calendar_Week(2006, 7, 1);
$Week->build();
while ( $Day = $Week->fetch() )
{
if ( $Day->isEmpty() )
{
echo '-,';
} else {
echo '$Day->thisDay().',';
}
}
?>
Expected result:
----------------
-,-,-,-,-,1,2,
Actual result:
--------------
26,27,28,29,30,1,2,