• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/db/blockinserter.php
  • Класс: BitrixSaleLocationDBBlockInserter
  • Вызов: BlockInserter::flush
public function flush()
{
	if($this->buffer == '')
		return;

	if(isset($this->callbacks['ON_BEFORE_FLUSH']))
		call_user_func($this->callbacks['ON_BEFORE_FLUSH']);

	$this->buffer .= ' '.$this->insertTail;

	$restrDropped = $this->dropAutoIncrementRestrictions();

	MainHttpApplication::getConnection()->query($this->buffer);

	if($restrDropped)
		$this->restoreAutoIncrementRestrictions();

	$this->buffer = '';
	$this->bufferSize = 0;
}