• Модуль: imconnector
  • Путь к файлу: ~/bitrix/modules/imconnector/lib/provider/base/input.php
  • Класс: Bitrix\ImConnector\Provider\Base\Input
  • Вызов: Input::deactivateConnector
protected function deactivateConnector(): Result
{
	$result = clone $this->result;

	if ($result->isSuccess())
	{
		Status::getInstance($this->connector, (int)$this->line)
			->setError(true)
			->save()
		;

		//Reset cache
		$cacheId = Connector::getCacheIdConnector($this->line, $this->connector);
		$cache = Cache::createInstance();
		$cache->clean($cacheId, Library::CACHE_DIR_COMPONENT);
	}

	return $result;
}