- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/location/search/word.php
- Класс: BitrixSaleLocationSearchWordTable
- Вызов: WordTable::initInsertHandles
public function initInsertHandles()
{
$this->word2LocationInserter = new BlockInserter(array(
'tableName' => static::getTableNameWord2Location(),
'exactFields' => array(
'LOCATION_ID' => array('data_type' => 'integer'),
'WORD_ID' => array('data_type' => 'integer')
),
'parameters' => array(
'mtu' => static::MTU
)
));
$this->dictionaryInserter = new BlockInserter(array(
'entityName' => 'BitrixSaleLocationSearchWordTable',
'exactFields' => array(
'WORD'
),
'parameters' => array(
'mtu' => static::MTU,
'autoIncrementFld' => 'ID',
'CALLBACKS' => array(
'ON_BEFORE_FLUSH' => array($this, 'onBeforeDictionaryFlush')
)
)
));
$this->dictionaryResorter = new BlockInserter(array(
'tableName' => static::getTableNamePositionTemporal(),
'exactFields' => array(
'WORD_ID' => array('data_type' => 'integer'),
'POSITION' => array('data_type' => 'integer')
),
'parameters' => array(
'mtu' => static::MTU
)
));
}