Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Proxy

Открытые члены

 __construct ($url, $allowedHosts=[])
 
 output ()
 

Защищенные члены

 getCurrentHttpHost ()
 
 getAllowedHosts ()
 
 getUserAllowedHosts ()
 
 isAllowedHost ($host)
 
 isEnabledForAll ()
 
 isEnabledForHost ($host)
 

Защищенные статические члены

static getResponse ()
 
static isAuthorized ()
 
static isEnabledForWhiteList ()
 
static getEnabledOption ()
 

Защищенные данные

 $uri
 
 $allowedHosts = []
 

Подробное описание

См. определение в файле proxy.php строка 14

Конструктор(ы)

◆ __construct()

__construct ( $url,
$allowedHosts = [] )

Proxy constructor.

Аргументы
string$url
array<string>$allowedHosts
Исключения

Bitrix\Main\SystemException

См. определение в файле proxy.php строка 28

Методы

◆ getAllowedHosts()

getAllowedHosts ( )
protected

Gets allowed hosts

Возвращает
array<string>
Исключения

Bitrix\Main\SystemException

См. определение в файле proxy.php строка 93

◆ getCurrentHttpHost()

getCurrentHttpHost ( )
protected

Gets current http host

Возвращает
null|string
Исключения

Bitrix\Main\SystemException

См. определение в файле proxy.php строка 76

◆ getEnabledOption()

static getEnabledOption ( )
staticprotected
Возвращает
string
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

См. определение в файле proxy.php строка 162

◆ getResponse()

static getResponse ( )
staticprotected
Возвращает
\Bitrix\Main\HttpResponse
Исключения

Bitrix\Main\SystemException

См. определение в файле proxy.php строка 57

◆ getUserAllowedHosts()

getUserAllowedHosts ( )
protected
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

См. определение в файле proxy.php строка 106

◆ isAllowedHost()

isAllowedHost ( $host)
protected

Checks that this host is allowed

Аргументы
string$host
Возвращает
bool
Исключения

Bitrix\Main\SystemException

См. определение в файле proxy.php строка 128

◆ isAuthorized()

static isAuthorized ( )
staticprotected
Возвращает
bool

См. определение в файле proxy.php строка 65

◆ isEnabledForAll()

isEnabledForAll ( )
protected
Возвращает
bool
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

См. определение в файле proxy.php строка 142

◆ isEnabledForHost()

isEnabledForHost ( $host)
protected
Аргументы
$host
Возвращает
bool
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

Исключения

Bitrix\Main\SystemException

См. определение в файле proxy.php строка 181

◆ isEnabledForWhiteList()

static isEnabledForWhiteList ( )
staticprotected
Возвращает
bool
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

См. определение в файле proxy.php строка 152

◆ output()

output ( )

См. определение в файле proxy.php строка 186

Данные класса

◆ $allowedHosts

$allowedHosts = []
protected

См. определение в файле proxy.php строка 20

◆ $uri

$uri
protected

См. определение в файле proxy.php строка 17