CBPCalc::isHoliday: Bitrix method

      
<?php 
//  CBPCalc :: isHoliday()
//  /dist/bitrix/modules/bizproc/classes/general/calc.php:906

    
private function isHoliday($date)
    {
        list(
$weekHolidays$yearHolidays) = $this->getCalendarHolidays();

        
$dayOfWeek date('w'$date);
        if (
in_array($dayOfWeek$weekHolidays))
            return 
true;
        
$dayOfYear date('j.n'$date);
        if (
in_array($dayOfYear$yearHolidaystrue))
            return 
true;

        return 
false;
    }