Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/socialnetwork/lib/component/ |
Upload File : |
<?php namespace Bitrix\Socialnetwork\Component; use Bitrix\Main\ErrorCollection; use Bitrix\Main\Error; use Bitrix\Socialnetwork\Component\LogListCommon\Util; class LogListCommon extends \CBitrixComponent implements \Bitrix\Main\Engine\Contract\Controllerable, \Bitrix\Main\Errorable { /** @var ErrorCollection errorCollection */ protected $errorCollection; protected $request = null; protected $currentUserAdmin = false; protected $task2LogList = []; public function configureActions(): array { return []; } public function getErrorByCode($code) { return $this->errorCollection->getErrorByCode($code); } /** * Getting array of errors. * @return Error[] */ public function getErrors(): array { return $this->errorCollection->toArray(); } protected function printErrors() { foreach($this->errorCollection as $error) { ShowError($error); } } protected function getRequest() { if ($this->request == null) { $this->request = Util::getRequest(); } return $this->request; } public function setTask2LogListValue($value = []) { $this->task2LogList = $value; } public function getTask2LogListValue() { return $this->task2LogList; } public function setCurrentUserAdmin($value = false): void { $this->currentUserAdmin = $value; } public function getCurrentUserAdmin() { return $this->currentUserAdmin; } }