• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/poolbase.php
  • Класс: BitrixSaleInternalsPoolBase
  • Вызов: PoolBase::resetPool
static function resetPool($code = null, $type = null)
{
	if ($code !== null)
	{
		if ($type !== null)
		{
			unset(static::$pool[$code][$type]);
		}
		else
		{
			unset(static::$pool[$code]);
		}
	}
	else
	{
		static::$pool = array();
	}

	if (empty(static::$pool[$code]))
	{
		unset(static::$pool[$code]);
	}
}