• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/user/option.php
  • Класс: BitrixImOpenLinesUserOption
  • Вызов: Option::setPause
public function setPause(bool $value = true): self
{
	static::cleanCache('PAUSE_' . $this->userId);
	UserOptionTable::merge([
		'USER_ID' => $this->userId,
		'PAUSE' => $value ? 'Y' : 'N',
	],
	[
		'PAUSE' => $value ? 'Y' : 'N',
	]);

	return $this;
}