Esempio n. 1
0
 /**
  * Check the time whether in the working hours of the account when client connect helpdesk system
  * @param string $accountId
  * @return boolean
  */
 public static function isInWorkingHours($accountId)
 {
     $helpDeskSetting = self::getInstance($accountId);
     return TimeUtil::checkHourInterval($helpDeskSetting->ondutyTime, $helpDeskSetting->offdutyTime, 0);
 }