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