1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
handlestatustrait.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Util;
4
5
trait
HandleStatusTrait
6
{
8
protected
array
$statusHandlers = [];
9
15
public
function
addStatusHandler
(callable $handler): self
16
{
17
$this->statusHandlers[] = $handler;
18
19
return
$this;
20
}
21
27
public
function
addStatusHandlerList
(
array
$handlers): self
28
{
29
foreach
($handlers as $handler)
30
{
31
$this->statusHandlers[] = $handler;
32
}
33
34
return
$this;
35
}
36
40
public
function
getStatusHandlerList
():
array
41
{
42
return
$this->statusHandlers;
43
}
44
50
protected
function
sendStatus
(
$status
)
51
{
52
foreach
($this->statusHandlers as $statusHandler)
53
{
54
call_user_func($statusHandler,
$status
);
55
}
56
}
57
}
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$status
$status
Определения
session.php:10
Bitrix\Calendar\Sync\Util\HandleStatusTrait
trait HandleStatusTrait
Определения
handlestatustrait.php:6
Bitrix\Calendar\Sync\Util\addStatusHandlerList
addStatusHandlerList(array $handlers)
Определения
handlestatustrait.php:27
Bitrix\Calendar\Sync\Util\getStatusHandlerList
getStatusHandlerList()
Определения
handlestatustrait.php:40
Bitrix\Calendar\Sync\Util\addStatusHandler
addStatusHandler(callable $handler)
Определения
handlestatustrait.php:15
Bitrix\Calendar\Sync\Util\sendStatus
sendStatus($status)
Определения
handlestatustrait.php:50
bitrix
modules
calendar
lib
sync
util
handlestatustrait.php
Создано системой
1.14.0