function cmfcCalendarV1Arabic::isDateValid in Calendar Systems 8.2
Same name and namespace in other branches
- 8 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::isDateValid()
- 6.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::isDateValid()
- 6 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::isDateValid()
- 7.3 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::isDateValid()
- 7 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::isDateValid()
- 7.2 calendar/v1/calendarSystems/arabic.class.inc.php \cmfcCalendarV1Arabic::isDateValid()
Parameters
$month:
$day:
$year:
Return value
unknown_type
Overrides cmfcCalendarV1Plugin::isDateValid
File
- calendar/
v1/ calendarSystems/ arabic.class.inc.php, line 676
Class
Code
function isDateValid($month, $day, $year) {
/*
$j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29);
if($month<=12 && $month>0)
{
if($j_days_in_month[$month-1]>=$day && $day>0) {
return 1;
}
if(is_kabise($year)) {
echo "Asdsd";
}
if(is_kabise($year) && $j_days_in_month[$month-1]==31) {
return 1;
}
}
return 0;
*/
return 1;
}