Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
event.php
1<?php
10
12{
13 public function isAccess(): ?bool
14 {
15 $isAccess = null;
16 foreach ($this->getResults() as $eventResult)
17 {
18 /* @var EventResult $eventResult */
19 if (!is_a($eventResult, EventResult::class))
20 {
21 continue;
22 }
23 if ($eventResult->getType() !== EventResult::SUCCESS)
24 {
25 continue;
26 }
27 if ($eventResult->isAccess() !== null)
28 {
29 $isAccess = ($isAccess === null)
30 ? $eventResult->isAccess()
31 : ($isAccess && $eventResult->isAccess());
32 }
33 }
34 return $isAccess;
35 }
36}