1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
GroupResult.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Socialnetwork\Control;
6
7use Bitrix\Main\Error;
8use Bitrix\Main\Result;
9use Bitrix\Socialnetwork\Item\Workgroup;
10
11class GroupResult extends Result
12{
13 public function addApplicationError(array $ignoreCodes = []): static
14 {
15 global $APPLICATION;
16
17 $applicationError = $APPLICATION->GetException();
18 if ($applicationError && !in_array($applicationError->id, $ignoreCodes, true))
19 {
20 $this->addError(new Error($applicationError->msg, $applicationError->id));
21 }
22
23 return $this;
24 }
25
26 public function getGroup(): ?Workgroup
27 {
28 return $this->data['group'] ?? null;
29 }
30
31 public function setGroup(?Workgroup $group): static
32 {
33 $this->data['group'] = $group;
34
35 return $this;
36 }
37
38 public function merge(Result $result): static
39 {
40 $this->data = array_merge($this->data, $result->getData());
41
42 $this->addErrors($result->getErrors());
43
44 return $this;
45 }
46}
global $APPLICATION
Определения include.php:80
Определения error.php:15
getErrors()
Определения result.php:62
addError(Error $error)
Определения result.php:50
addErrors(array $errors)
Определения result.php:113
addApplicationError(array $ignoreCodes=[])
Определения GroupResult.php:13
merge(Result $result)
Определения GroupResult.php:38
setGroup(?Workgroup $group)
Определения GroupResult.php:31
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14