Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventresult.php
1<?php
3
5
6class EventResult extends Main\Entity\EventResult
7{
8 public function __construct()
9 {
10 parent::__construct();
11 $this->modified = [
12 'fields' => [],
13 'external_fields' => [],
14 'actions' => []
15 ];
16 $this->unset = [
17 'fields' => [],
18 'external_fields' => [],
19 'actions' => []
20 ];
21 }
22
23 public function modifyFields(array $fields)
24 {
25 $this->modified['fields'] = $fields;
26 }
27
28 public function unsetFields(array $fields)
29 {
30 $this->unset['fields'] = $fields;
31 }
32
36 public function unsetField($fieldName)
37 {
38 $this->unset['fields'][] = $fieldName;
39 }
40
41 public function modifyExternalFields(array $fields)
42 {
43 $this->modified['external_fields'] = $fields;
44 }
45
46 public function unsetExternalFields(array $fields)
47 {
48 $this->unset['external_fields'] = $fields;
49 }
50
51 public function modifyActions(array $actions)
52 {
53 $this->modified['actions'] = $actions;
54 }
55
56 public function unsetActions(array $actions)
57 {
58 $this->unset['actions'] = $actions;
59 }
60}