TaskHandler::clearSearchIndex

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. TaskHandler
  4. clearSearchIndex
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/replica/taskhandler.php
  • Класс: BitrixTasksReplicaTaskHandler
  • Вызов: TaskHandler::clearSearchIndex
private function clearSearchIndex(int $taskId): void
{
	$tableResult = SearchIndexTable::getList([
		'select' => ['ID'],
		'filter' => [
			'=TASK_ID' => $taskId,
		],
	]);
	while ($item = $tableResult->fetch())
	{
		SearchIndexTable::delete($item);
	}
}

Добавить комментарий