Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Factory.php
1
<?php
2
3
namespace
Bitrix\Bizproc\Storage
;
4
5
class
Factory
6
{
7
private
static
$instance;
8
9
public
static
function
getInstance
()
10
{
11
if
(self::$instance ===
null
)
12
{
13
self::$instance =
new
self
();
14
}
15
return
self::$instance;
16
}
17
18
public
function
getActivityStorage
(\CBPActivity $activity):
ActivityStorage
19
{
20
$tplId = $activity->getWorkflowTemplateId();
21
$name = $activity->getName();
22
23
return
ActivityStorage::getInstance
($tplId, $name);
24
}
25
26
public
function
onAfterTemplateDelete
(
int
$id)
27
{
28
ActivityStorage::onAfterTemplateDelete
($id);
29
}
30
31
private
function
__construct()
32
{
33
}
34
35
private
function
__clone()
36
{
37
}
38
}
Bitrix\Bizproc\Storage\ActivityStorage
Definition
ActivityStorage.php:8
Bitrix\Bizproc\Storage\ActivityStorage\getInstance
static getInstance(int $tplId, string $name)
Definition
ActivityStorage.php:15
Bitrix\Bizproc\Storage\ActivityStorage\onAfterTemplateDelete
static onAfterTemplateDelete(int $id)
Definition
ActivityStorage.php:115
Bitrix\Bizproc\Storage\Factory
Definition
Factory.php:6
Bitrix\Bizproc\Storage\Factory\onAfterTemplateDelete
onAfterTemplateDelete(int $id)
Definition
Factory.php:26
Bitrix\Bizproc\Storage\Factory\getActivityStorage
getActivityStorage(\CBPActivity $activity)
Definition
Factory.php:18
Bitrix\Bizproc\Storage\Factory\getInstance
static getInstance()
Definition
Factory.php:9
Bitrix\Bizproc\Storage
Definition
ActivityStorage.php:3
modules
bizproc
lib
Storage
Factory.php
Создано системой
1.10.0