1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
authentication.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Main\Engine\ActionFilter\Attribute\Rule
;
6
7
use
Attribute
;
8
use
Bitrix\Main\Engine\ActionFilter\Attribute\FilterAttributeInterface
;
9
use
Bitrix\Main\Engine\ActionFilter\FilterType
;
10
11
#[Attribute(Attribute::TARGET_METHOD)]
12
final
class
Authentication
implements
FilterAttributeInterface
13
{
14
public
function
__construct
(
15
private
readonly
bool
$enableRedirect =
false
,
16
private
readonly
FilterType
$type
= FilterType::EnablePrefilter,
17
)
18
{
19
20
}
21
22
public
function
getFilters
():
array
23
{
24
if
($this->type->isNegative())
25
{
26
return
[\Bitrix\Main\Engine\ActionFilter\Authentication::class];
27
}
28
29
return
[new \Bitrix\Main\Engine\ActionFilter\Authentication($this->enableRedirect)];
30
}
31
32
public
function
getType
():
FilterType
33
{
34
return
$this->type
;
35
}
36
}
$type
$type
Определения
options.php:106
Bitrix\Main\Engine\ActionFilter\Attribute\Rule\Authentication
Определения
authentication.php:13
Bitrix\Main\Engine\ActionFilter\Attribute\Rule\Authentication\__construct
__construct(private readonly bool $enableRedirect=false, private readonly FilterType $type=FilterType::EnablePrefilter,)
Определения
authentication.php:14
Bitrix\Main\Engine\ActionFilter\Attribute\Rule\Authentication\getFilters
getFilters()
Определения
authentication.php:22
Bitrix\Main\Engine\ActionFilter\Attribute\Rule\Authentication\getType
getType()
Определения
authentication.php:32
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Main\Engine\ActionFilter\Attribute\FilterAttributeInterface
Определения
filterattributeinterface.php:11
Bitrix\Main\Engine\ActionFilter\Attribute\Rule
Определения
authentication.php:5
Bitrix\Main\Engine\ActionFilter\Attribute
Определения
attributereader.php:5
Bitrix\Main\Engine\ActionFilter\FilterType
FilterType
Определения
filtertype.php:8
bitrix
modules
main
lib
engine
actionfilter
attribute
rule
authentication.php
Создано системой
1.14.0