setAction
\Bitrix\Security\HostRestriction public \Bitrix\Security\HostRestriction::setAction( string $action, array $options = array() );
Non-Static method defines actions, executed during the verification.
Parameters
Parameter | Description | Version |
---|---|---|
$action | Actions. Supports forwarding and access restriction. | |
$options | Action settings. Presently, supports only address for forwarding. |
Exceptions
- LogicException (
\Bitrix\Security\LogicException
) - ArgumentTypeException (
Bitrix\Main\ArgumentTypeException
) - ArgumentNullException (
Bitrix\Main\ArgumentNullException
) - ArgumentOutOfRangeException (
Bitrix\Main\ArgumentOutOfRangeException
)
Example
© «Bitrix24», 2001-2024