• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/livechatmanager.php
  • Класс: BitrixImOpenLinesLiveChatManager
  • Вызов: LiveChatManager::get
public function get($configId = null)
{
	if ($configId)
	{
		$this->id = intval($configId);
	}

	if ($this->id <= 0)
	{
		return false;
	}

	$orm = ModelLivechatTable::getById($this->id);
	$this->config = $orm->fetch();
	if (!$this->config)
		return false;

	$this->config['URL'] = self::getFormatedUrl($this->config['URL_CODE']);
	$this->config['URL_PUBLIC'] = self::getFormatedUrl($this->config['URL_CODE_PUBLIC']);
	$this->config['URL_SERVER'] = self::getFormatedUrl();
	$this->config['COPYRIGHT_REMOVED'] = self::canRemoveCopyright()? $this->config['COPYRIGHT_REMOVED']: "N";
	$this->config['CAN_REMOVE_COPYRIGHT'] = self::canRemoveCopyright()? 'Y':'N';
	$this->config['BACKGROUND_IMAGE_LINK'] = $this->config['BACKGROUND_IMAGE']? CFile::GetPath($this->config['BACKGROUND_IMAGE']): "";

	return $this->config;
}