Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
booleanrule.php
1
<?php
2
10
namespace
Bitrix\Main\Authentication\Policy
;
11
12
class
BooleanRule
extends
Rule
13
{
14
protected
$options
= [
15
'type'
=>
'checkbox'
,
16
];
17
24
public
function
__construct
(
$title
,
bool
$value
=
false
, array
$options
=
null
)
25
{
26
parent::__construct(
$title
,
$value
,
$options
);
27
}
28
32
public
function
compare
(
$value
): bool
33
{
34
return
(
$value
&& !$this->value);
35
}
36
}
Bitrix\Main\Authentication\Policy\BooleanRule
Definition
booleanrule.php:13
Bitrix\Main\Authentication\Policy\BooleanRule\$options
$options
Definition
booleanrule.php:14
Bitrix\Main\Authentication\Policy\BooleanRule\__construct
__construct($title, bool $value=false, array $options=null)
Definition
booleanrule.php:24
Bitrix\Main\Authentication\Policy\BooleanRule\compare
compare($value)
Definition
booleanrule.php:32
Bitrix\Main\Authentication\Policy\Rule
Definition
rule.php:13
Bitrix\Main\Authentication\Policy\Rule\$value
$value
Definition
rule.php:15
Bitrix\Main\Authentication\Policy\Rule\$title
$title
Definition
rule.php:14
Bitrix\Main\Authentication\Policy
Definition
booleanrule.php:10
modules
main
lib
authentication
policy
booleanrule.php
Создано системой
1.10.0