• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/lib/repository/schedule/schedulerepository.php
  • Класс: BitrixTimemanRepositoryScheduleScheduleRepository
  • Вызов: ScheduleRepository::findSchedulesForAllUsers
public function findSchedulesForAllUsers($exceptScheduleId = null)
{
	$res = $this->getActiveSchedulesQuery()
		->addSelect('*')
		->where('IS_FOR_ALL_USERS', true);
	if ($exceptScheduleId !== null)
	{
		$res->whereNot('ID', $exceptScheduleId);
	}
	return $res->exec()
		->fetchAll();
}