Documentation

setAction

\Bitrix\Security\HostRestriction public
\Bitrix\Security\HostRestriction::setAction(
 string $action,
 array $options = array()
);

Non-Static method defines actions, executed during the verification.

Parameters

ParameterDescriptionVersion
$actionActions. Supports forwarding and access restriction.
$optionsAction settings. Presently, supports only address for forwarding.

Exceptions

Example



© «Bitrix24», 2001-2024