1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
factory.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Internals\EventService\Event
;
4
5
use
Bitrix\Socialnetwork\Internals\EventService\Event
;
6
use
Bitrix\Socialnetwork\Internals\EventService\EventDictionary
;
7
8
class
Factory
9
{
10
public
static
function
buildEvent
(
string
$hitId,
string
$type
,
array
$data
= [],
int
|
null
$eventId =
null
):
Event
11
{
12
switch
(
$type
)
13
{
14
case
EventDictionary::EVENT_WORKGROUP_ADD
:
15
case
EventDictionary::EVENT_WORKGROUP_BEFORE_UPDATE
:
16
case
EventDictionary::EVENT_WORKGROUP_UPDATE
:
17
case
EventDictionary::EVENT_WORKGROUP_DELETE
:
18
$event
=
new
WorkgroupEvent
($hitId,
$type
);
19
break
;
20
default
:
21
$event
=
new
Event
($hitId,
$type
);
22
}
23
24
$event
->setData(
$data
);
25
26
if
($eventId)
27
{
28
$event
->setId($eventId);
29
}
30
31
return
$event
;
32
}
33
}
$type
$type
Определения
options.php:106
Bitrix\Socialnetwork\Internals\EventService\Event\Factory
Определения
factory.php:9
Bitrix\Socialnetwork\Internals\EventService\Event\Factory\buildEvent
static buildEvent(string $hitId, string $type, array $data=[], int|null $eventId=null)
Определения
factory.php:10
Bitrix\Socialnetwork\Internals\EventService\Event\WorkgroupEvent
Определения
workgroupevent.php:12
Bitrix\Socialnetwork\Internals\EventService\EventDictionary
Определения
eventdictionary.php:13
Bitrix\Socialnetwork\Internals\EventService\EventDictionary\EVENT_WORKGROUP_ADD
const EVENT_WORKGROUP_ADD
Определения
eventdictionary.php:15
Bitrix\Socialnetwork\Internals\EventService\EventDictionary\EVENT_WORKGROUP_DELETE
const EVENT_WORKGROUP_DELETE
Определения
eventdictionary.php:18
Bitrix\Socialnetwork\Internals\EventService\EventDictionary\EVENT_WORKGROUP_BEFORE_UPDATE
const EVENT_WORKGROUP_BEFORE_UPDATE
Определения
eventdictionary.php:16
Bitrix\Socialnetwork\Internals\EventService\EventDictionary\EVENT_WORKGROUP_UPDATE
const EVENT_WORKGROUP_UPDATE
Определения
eventdictionary.php:17
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
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
event
factory.php
Создано системой
1.14.0