• Модуль: timeman
  • Путь к файлу: ~/bitrix/modules/timeman/classes/general/timeman_report_full.php
  • Класс: CUserReportFull
  • Вызов: CUserReportFull::clearEventsByCheckStatus
private function clearEventsByCheckStatus(array $entriesInfo): array
{
	if (is_array($entriesInfo['EVENTS']))
	{
		foreach ($entriesInfo['EVENTS'] as $key => $arEvent)
		{
			if (
				($arEvent['STATUS'] ?? null)
				&& $arEvent['STATUS'] != 'Y'
			)
			{
				unset($entriesInfo['EVENTS'][$key]);
			}
		}
		$entriesInfo['EVENTS'] = array_values($entriesInfo['EVENTS']);
	}

	return $entriesInfo;
}