...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_external_sale_import.php
- Класс: \CCrmExternalSaleImport
- Вызов: CCrmExternalSaleImport::GetServerVersion
protected function GetServerVersion() { if($this->serverVersion !== null) { return $this->serverVersion; } $this->serverVersion = 0; $sessid = $this->GetServerSessionID(); if($sessid !== "") { $request = array( "METHOD" => "GET", "PATH" => CHTTP::urlAddParams( $this->path, array( "type" => "crm", "mode" => "init", "version" => "2.09", "sessid" => $sessid ) ) ); $response = $this->proxy->Send($request); if($response !== null) { $body = isset($response["BODY"]) ? $response["BODY"] : ''; if(preg_match('/\bversion=([0-9\.]+)/', $body, $m) === 1) { $this->serverVersion = floatval($m[1]); } } } return $this->serverVersion; }