Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
flagregistry.php
1
<?php
2
3
namespace
Bitrix\Calendar\Internals
;
4
5
use
Bitrix\Calendar\Core\Base\Map
;
6
7
class
FlagRegistry
8
{
9
use
SingletonTrait
;
10
11
private
array $flags;
12
13
public
function
setFlag
(
string
$name)
14
{
15
$this->flags[$name] =
true
;
16
}
17
18
public
function
resetFlag
(
string
$name)
19
{
20
if
(array_key_exists($name, $this->flags))
21
{
22
unset($this->flags[$name]);
23
}
24
}
25
26
public
function
isFlag
(
string
$name): bool
27
{
28
return
$this->flags[$name] ??
false
;
29
}
30
}
Bitrix\Calendar\Core\Base\Map
Definition
map.php:11
Bitrix\Calendar\Internals\FlagRegistry
Definition
flagregistry.php:8
Bitrix\Calendar\Internals\FlagRegistry\resetFlag
resetFlag(string $name)
Definition
flagregistry.php:18
Bitrix\Calendar\Internals\FlagRegistry\isFlag
isFlag(string $name)
Definition
flagregistry.php:26
Bitrix\Calendar\Internals\FlagRegistry\setFlag
setFlag(string $name)
Definition
flagregistry.php:13
Bitrix\Calendar\Internals
Definition
access.php:3
Bitrix\Calendar\Internals\SingletonTrait
trait SingletonTrait
Definition
singletontrait.php:8
modules
calendar
lib
internals
flagregistry.php
Создано системой
1.10.0