• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/search/reindexprocess.php
  • Класс: BitrixSaleLocationSearchReindexProcess
  • Вызов: ReindexProcess::getSubpercentForStageCreateDictionary
protected function getSubpercentForStageCreateDictionary()
{
	if(!isset($this->data['LOC_NAMES_2_INDEX_COUNT']))
	{
		$item = LocationNameLocationTable::getList(array(
			'select' => array('CNT'),
			'filter' => WordTable::getFilterForInitData(array(
				'TYPES' => Finder::getIndexedTypes(),
				'LANGS' => Finder::getIndexedLanguages()
			))
		))->fetch();

		$this->data['LOC_NAMES_2_INDEX_COUNT'] = intval($item['CNT']);
	}

	return $this->getSubPercentByTotalAndDone($this->data['LOC_NAMES_2_INDEX_COUNT'], $this->data['OFFSET'] ?? 0);
}