1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Factory.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Relation\Strategy;
4
5use Bitrix\Calendar\Core\Event\Event;
6use Bitrix\Calendar\Core\Event\Tools\Dictionary;
7
8class Factory
9{
10 protected static ?Factory $instance = null;
11
12 public static function getInstance(): Factory
13 {
14 if (self::$instance === null)
15 {
16 self::$instance = new self();
17 }
18
19 return self::$instance;
20 }
21
22 private function __construct()
23 {}
24
26 {
27 if ($event->getSpecialLabel() === Dictionary::EVENT_TYPE['shared_crm'])
28 {
30 }
31
32 return new NullStrategy($userId, $event);
33 }
34}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
getStrategy(int $userId, Event $event)
Определения Factory.php:25
static Factory $instance
Определения Factory.php:10
$event
Определения prolog_after.php:141