Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
loglistcommon.php
1<?php
2
4
8
10{
13 protected $request = null;
14 protected $currentUserAdmin = false;
15
16 protected $task2LogList = [];
17
18 public function configureActions(): array
19 {
20 return [];
21 }
22
23 public function getErrorByCode($code)
24 {
25 return $this->errorCollection->getErrorByCode($code);
26 }
27
32 public function getErrors(): array
33 {
34 return $this->errorCollection->toArray();
35 }
36
37 protected function printErrors()
38 {
39 foreach($this->errorCollection as $error)
40 {
41 ShowError($error);
42 }
43 }
44
45 protected function getRequest()
46 {
47 if ($this->request == null)
48 {
49 $this->request = Util::getRequest();
50 }
51
52 return $this->request;
53 }
54
55 public function setTask2LogListValue($value = [])
56 {
57 $this->task2LogList = $value;
58 }
59
60 public function getTask2LogListValue()
61 {
62 return $this->task2LogList;
63 }
64
65 public function setCurrentUserAdmin($value = false): void
66 {
67 $this->currentUserAdmin = $value;
68 }
69
70 public function getCurrentUserAdmin()
71 {
72 return $this->currentUserAdmin;
73 }
74}