HttpMethod implements FilterAttributeInterface
FinalYes
Attributes
- #[Attribute]
- \Attribute::TARGET_METHOD
Table of Contents
Interfaces
Methods
- __construct() : mixed
- getFilters() : array<string|int, Base|string>
- getType() : FilterType
Methods
__construct()
public
__construct([array<string|int, mixed> $allowedMethods = [\Bitrix\Main\Engine\ActionFilter\Attribute\Rule\Bitrix\Main\Engine\ActionFilter\HttpMethod::METHOD_GET] ][, FilterType $type = \Bitrix\Main\Engine\ActionFilter\FilterType::EnablePrefilter ]) : mixed
Parameters
- $allowedMethods : array<string|int, mixed> = [\Bitrix\Main\Engine\ActionFilter\Attribute\Rule\Bitrix\Main\Engine\ActionFilter\HttpMethod::METHOD_GET]
- $type : FilterType = \Bitrix\Main\Engine\ActionFilter\FilterType::EnablePrefilter
getFilters()
public
getFilters() : array<string|int, Base|string>
Return values
array<string|int, Base|string>getType()
public
getType() : FilterType