1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ModulesConditionMap.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Notification\Group\Condition;
4
6{
10 private array $map = [];
11
12 public function add(ModuleConditions $moduleConditions): static
13 {
14 $this->map[$moduleConditions->module] = $moduleConditions;
15
16 return $this;
17 }
18
19 public function addByEventCondition(ModuleEventCondition $eventCondition): static
20 {
21 if (!isset($this->map[$eventCondition->module]))
22 {
23 $this->map[$eventCondition->module] = new ModuleConditions($eventCondition->module);
24 }
25
26 $moduleConditions = $this->map[$eventCondition->module];
27 if ($eventCondition->event)
28 {
29 $moduleConditions->events[$eventCondition->event] = $eventCondition->event;
30 }
31 else
32 {
33 $moduleConditions->isWhole = true;
34 }
35
36 return $this;
37 }
38
42 public function getAll(): array
43 {
44 return $this->map;
45 }
46}
addByEventCondition(ModuleEventCondition $eventCondition)
Определения ModulesConditionMap.php:19
add(ModuleConditions $moduleConditions)
Определения ModulesConditionMap.php:12
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$map
Определения config.php:5