1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
workgroupevent.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Internals\EventService\Event;
4
10
12{
13 private static array $fields = [];
14
15 private array $oldFields = [];
16 private array $newFields = [];
17
18 public function getOldFields(): array
19 {
20 return $this->oldFields;
21 }
22
23 public function getNewFields(): array
24 {
25 return $this->newFields;
26 }
27
28 public function setData(array $data = []): self
29 {
30 $this->data = $this->prepareData($data);
31
32 $this->collectOldData();
33
34 return $this;
35 }
36
37 private function collectOldData(): void
38 {
39 $groupId = $this->getGroupId();
40
41 if (
42 $groupId
43 && empty($this->oldFields)
44 )
45 {
46 $this->oldFields = $this->getGroupFields($groupId);
47 }
48 }
49
50 public function collectNewData(): void
51 {
52 $groupId = $this->getGroupId();
53 if (
54 $groupId
55 && empty($this->newFields)
56 )
57 {
58 $this->newFields = $this->getGroupFields($groupId);
59 }
60 }
61
62 private function getGroupFields(int $groupId): array
63 {
64 if (isset(self::$fields[$groupId]))
65 {
66 return self::$fields[$groupId];
67 }
68
69 $fields = \CSocNetGroup::getById($groupId);
70
71 self::$fields[$groupId] = is_array($fields) ? $fields : [];
72
73 return self::$fields[$groupId];
74 }
75}
$data['IS_AVAILABLE']
Определения .description.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$fields
Определения yandex_run.php:501