Beispiel #1
0
 public function isWorkingDay()
 {
     global $AppUI;
     if ($AppUI->isActiveModule('holiday')) {
         // Holiday module, check the holiday database
         require_once W2P_BASE_DIR . "/modules/holiday/holiday_functions.class.php";
         if (HolidayFunctions::isHoliday($this)) {
             return false;
         }
     }
     $working_days = w2PgetConfig('cal_working_days');
     $working_days = is_null($working_days) ? array('1', '2', '3', '4', '5') : explode(',', $working_days);
     return in_array($this->getDayOfWeek(), $working_days);
 }