Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Factory.php
1<?php
2
4
5class 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 {
29 }
30
31 private function __construct()
32 {
33 }
34
35 private function __clone()
36 {
37 }
38}
static getInstance(int $tplId, string $name)
getActivityStorage(\CBPActivity $activity)
Definition Factory.php:18