Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
abstractrule.php
1
<?php
9
namespace
Bitrix\Main\Access\Rule
;
10
11
use
Bitrix\Main\Access\AccessibleController
;
12
use
Bitrix\Main\Access\AccessibleItem
;
13
use
Bitrix\Main\Access\User\AccessibleUser
;
14
15
abstract
class
AbstractRule
implements
RuleInterface
16
{
17
/* @var AccessibleController $controller */
18
protected
$controller
;
19
20
/* @var AccessibleUser $user */
21
protected
$user
;
22
23
public
function
__construct
(
AccessibleController
$controller
)
24
{
25
$this->controller =
$controller
;
26
$this->user =
$controller
->getUser();
27
}
28
29
abstract
public
function
execute
(
AccessibleItem
$item =
null
, $params =
null
): bool;
30
}
Bitrix\Main\Access\Rule\AbstractRule
Definition
abstractrule.php:16
Bitrix\Main\Access\Rule\AbstractRule\execute
execute(AccessibleItem $item=null, $params=null)
Bitrix\Main\Access\Rule\AbstractRule\$controller
$controller
Definition
abstractrule.php:18
Bitrix\Main\Access\Rule\AbstractRule\$user
$user
Definition
abstractrule.php:21
Bitrix\Main\Access\Rule\AbstractRule\__construct
__construct(AccessibleController $controller)
Definition
abstractrule.php:23
Bitrix\Main\Access\AccessibleController
Definition
accessiblecontroller.php:15
Bitrix\Main\Access\AccessibleItem
Definition
accessibleitem.php:13
Bitrix\Main\Access\Rule\RuleInterface
Definition
ruleinterface.php:15
Bitrix\Main\Access\User\AccessibleUser
Definition
accessibleuser.php:13
Bitrix\Main\Access\Rule
Definition
abstractrule.php:9
modules
main
lib
access
rule
abstractrule.php
Создано системой
1.10.0