1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
eventcollection.php
См. документацию.
1
<?php
2
9
10
namespace
Bitrix\Socialnetwork\Internals\EventService;
11
12
class
EventCollection
13
{
14
private
array
$ids = [];
15
private
array
$registry = [];
16
17
private
static
$instance;
18
22
private
function
__construct()
23
{
24
25
}
26
30
public
static
function
getInstance
(): self
31
{
32
if
(!self::$instance)
33
{
34
self::$instance =
new
self
();
35
}
36
37
return
self::$instance;
38
}
39
43
public
function
list
():
array
44
{
45
return
$this->registry;
46
}
47
51
public
function
push
(
Event
$event
): void
52
{
53
$this->registry[
$event
->getHash()] =
$event
;
54
$this->ids[] =
$event
->getId();
55
}
56
60
public
function
getEventsId
():
array
61
{
62
return
$this->ids;
63
}
64
65
public
function
isEmpty
(): bool
66
{
67
return
empty($this->registry);
68
}
69
70
public
function
isDuplicate
(
Event
$event
): bool
71
{
72
return
(isset($this->registry[
$event
->getHash()]));
73
}
74
}
Bitrix\Socialnetwork\Internals\EventService\EventCollection
Определения
eventcollection.php:13
Bitrix\Socialnetwork\Internals\EventService\EventCollection\push
push(Event $event)
Определения
eventcollection.php:51
Bitrix\Socialnetwork\Internals\EventService\EventCollection\list
list()
Определения
eventcollection.php:43
Bitrix\Socialnetwork\Internals\EventService\EventCollection\isDuplicate
isDuplicate(Event $event)
Определения
eventcollection.php:70
Bitrix\Socialnetwork\Internals\EventService\EventCollection\getEventsId
getEventsId()
Определения
eventcollection.php:60
Bitrix\Socialnetwork\Internals\EventService\EventCollection\getInstance
static getInstance()
Определения
eventcollection.php:30
Bitrix\Socialnetwork\Internals\EventService\EventCollection\isEmpty
isEmpty()
Определения
eventcollection.php:65
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Socialnetwork\Internals\EventService\Event
Определения
factory.php:3
$event
$event
Определения
prolog_after.php:141
bitrix
modules
socialnetwork
lib
internals
eventservice
eventcollection.php
Создано системой
1.14.0