|
1C-Bitrix 25.700.0
|
Открытые члены | |
| __construct () | |
| process ($host=null) | |
| isValidHost ($host) | |
| getProperties () | |
| setProperties (array $properties) | |
| getAction () | |
| getActionOptions () | |
| setAction ($action, array $options=array()) | |
| getLogging () | |
| setLogging ($isLogNeeded=true) | |
| getActive () | |
| setActive ($isActive=false) | |
| getHosts () | |
| setHosts ($hosts, $ignoreChecking=false) | |
| getValidationRegExp () | |
| save () | |
Поля данных | |
| const | ACTION_REDIRECT = 'redirect' |
| const | ACTION_STOP = 'stop' |
Защищенные члены | |
| isBound () | |
| getTargetHost () | |
| log ($host) | |
| doActions () | |
| genValidationRegExp ($hosts) | |
| checkNewHosts ($hosts) | |
См. определение в файле hostrestriction.php строка 26
| __construct | ( | ) |
См. определение в файле hostrestriction.php строка 61
|
protected |
Checks the host to detect logical errors (eg blocking the current host)
| string | $hosts | Allowed hosts (wild card supported, e.g.: *.example.com). |
Bitrix\Security\LogicException
См. определение в файле hostrestriction.php строка 463
|
protected |
Perform some actions when requested host is not allowed by host restriction policy
@noinspection PhpIncludeInspection
См. определение в файле hostrestriction.php строка 416
|
protected |
Generates regular expression obtained from hosts
| string | $hosts | Allowed hosts (wild card supported, e.g.: *.example.com). |
См. определение в файле hostrestriction.php строка 441
| getAction | ( | ) |
См. определение в файле hostrestriction.php строка 178
| getActionOptions | ( | ) |
См. определение в файле hostrestriction.php строка 186
| getActive | ( | ) |
См. определение в файле hostrestriction.php строка 257
| getHosts | ( | ) |
См. определение в файле hostrestriction.php строка 285
| getLogging | ( | ) |
См. определение в файле hostrestriction.php строка 232
| getProperties | ( | ) |
См. определение в файле hostrestriction.php строка 116
|
protected |
Return requested host for checking
См. определение в файле hostrestriction.php строка 391
| getValidationRegExp | ( | ) |
Return regular expressions (based on hosts) for checking. Note: regular expression is cached for performance improvement and auto cleared after saving {
См. определение в файле hostrestriction.php строка 318
|
protected |
Return true if HostRestriction already handled on system event "OnPageStart"
См. определение в файле hostrestriction.php строка 373
| isValidHost | ( | $host | ) |
Checking host by host restriction policy
| string | $host | Host for checking. |
Bitrix\Main\ArgumentTypeException
См. определение в файле hostrestriction.php строка 98
|
protected |
Logging current host by event manager
| string | $host | Requested host. |
См. определение в файле hostrestriction.php строка 406
| process | ( | $host = null | ) |
The main method that checks the current host, logging and starting action
| string | $host | Requested host for checking. |
См. определение в файле hostrestriction.php строка 75
| save | ( | ) |
Save all properties, enable automatic checking and clear cache if needed
См. определение в файле hostrestriction.php строка 343
Set action performed while checking
| string | $action | Some action, now supported: redirect and stop. |
| array | $options | Some options for action, so far supported only host for redirect in redirect action. |
Bitrix\Security\LogicException
Bitrix\Main\ArgumentTypeException
Bitrix\Main\ArgumentNullException
Bitrix\Main\ArgumentOutOfRangeException
См. определение в файле hostrestriction.php строка 202
| setActive | ( | $isActive = false | ) |
Activate or deactivate automatic checking
| bool | $isActive | Set true for enable checking on every request. |
Bitrix\Main\ArgumentTypeException
См. определение в файле hostrestriction.php строка 272
| setHosts | ( | $hosts, | |
| $ignoreChecking = false ) |
Set allowed hosts
| string | $hosts | Allowed hosts (wild card supported, e.g.: *.example.com). |
| bool | $ignoreChecking | Set false for disable host validating before set. |
Bitrix\Main\ArgumentTypeException
| LogicException |
См. определение в файле hostrestriction.php строка 299
| setLogging | ( | $isLogNeeded = true | ) |
Activate or deactivate logging on unallowed host requested
| bool | $isLogNeeded | Set true if need logging unallowed host. |
Bitrix\Main\ArgumentTypeException
См. определение в файле hostrestriction.php строка 244
| setProperties | ( | array | $properties | ) |
Set various properties for host checking, now support:
| array | $properties | See above. |
Bitrix\Main\ArgumentOutOfRangeException
Bitrix\Main\ArgumentTypeException
Bitrix\Main\ArgumentNullException
| LogicException |
См. определение в файле hostrestriction.php строка 143
| const ACTION_REDIRECT = 'redirect' |
См. определение в файле hostrestriction.php строка 28
| const ACTION_STOP = 'stop' |
См. определение в файле hostrestriction.php строка 29