Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventspool.php
1
<?php
2
namespace
Bitrix\Sale\Internals
;
3
4
class
EventsPool
extends
PoolBase
5
{
6
protected
static
$events
= array();
7
8
public
static
function
getEvents
($code)
9
{
10
$resultList = array();
11
$list = parent::getPoolByCode($code);
12
13
if
(is_array($list) && !empty($list))
14
{
15
foreach
($list as $eventName => $eventData)
16
{
17
$resultList[$eventName] = reset($eventData);
18
}
19
20
$list = $resultList;
21
}
22
23
return
$list;
24
}
25
26
public
static
function
getEventsByType
($code, $type)
27
{
28
$data = parent::get($code, $type);
29
if
(!empty($data))
30
{
31
$data = reset($data);
32
}
33
34
return
$data;
35
}
36
42
public
static
function
addEvent
($code, $type, $event)
43
{
44
parent::add($code, $type, $event);
45
}
46
53
public
static
function
isEventTypeExists
($code, $type)
54
{
55
return
parent::isTypeExists($code, $type);
56
}
57
62
public
static
function
resetEvents
($code =
null
, $type =
null
)
63
{
64
parent::resetPool($code, $type);
65
}
66
}
Bitrix\Sale\EventsPool
Definition
eventspool.php:5
Bitrix\Sale\EventsPool\$events
static $events
Definition
eventspool.php:6
Bitrix\Sale\Internals\EventsPool\isEventTypeExists
static isEventTypeExists($code, $type)
Definition
eventspool.php:53
Bitrix\Sale\Internals\EventsPool\addEvent
static addEvent($code, $type, $event)
Definition
eventspool.php:42
Bitrix\Sale\Internals\EventsPool\resetEvents
static resetEvents($code=null, $type=null)
Definition
eventspool.php:62
Bitrix\Sale\Internals\EventsPool\getEvents
static getEvents($code)
Definition
eventspool.php:8
Bitrix\Sale\Internals\EventsPool\getEventsByType
static getEventsByType($code, $type)
Definition
eventspool.php:26
Bitrix\Sale\Internals\PoolBase
Definition
poolbase.php:5
Bitrix\Sale\Internals
Definition
accountnumber.php:3
modules
sale
lib
internals
eventspool.php
Создано системой
1.10.0