• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item.php
  • Класс: BitrixTasksItem
  • Вызов: Item::getBatchState
static function getBatchState()
{
	$cache =& static::getCache();

	if (!($cache['BATCH_STATE'] ?? null))
	{
		$state = new StateTrigger();
		$state->setEnterCallback(static::getClass().'::processEnterBatchMode');
		$state->setLeaveCallback(static::getClass().'::processLeaveBatchMode');

		$cache['BATCH_STATE'] = $state;
	}

	return $cache['BATCH_STATE'];
}