uawdijnntqw1x1x1
IP : 18.191.17.175
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
rostov.axolotls.ru
/
bitrix
/
modules
/
tasks
/
lib
/
util
/
error.php
/
/
<? namespace Bitrix\Tasks\Util; final class Error extends \Bitrix\Main\Error { public const TYPE_FATAL = 'FATAL', TYPE_WARNING = 'WARNING', TYPE_ERROR = 'ERROR'; protected $type = 'FATAL'; protected $data = null; /** * Creates a new Error. * @param string $message * @param int $code * @param bool $type * @param null $data */ public function __construct($message, $code = 0, $type = false, $data = null) { parent::__construct($message, $code); if(!$type) { $type = static::TYPE_FATAL; } $this->type = $type; if($data !== null) { $this->data = $data; } } public function toArray() { return array( 'CODE' => $this->getCode(), 'MESSAGE' => $this->getMessage(), 'TYPE' => $this->getType(), 'DATA' => $this->getData() ); } public function toArrayMeta() { return array( 'CODE' => $this->getCode(), 'MESSAGE' => $this->getMessage(), 'TYPE' => $this->getType() ); } public static function makeFromArray(array $error) { return new static($error['MESSAGE'], $error['CODE'], $error['TYPE'], $error['DATA']); } public function setCode($code) { $this->code = $code; } public function setType($type) { $this->type = $type; } public function getType() { return $this->type; } public function getData() { return $this->data; } public function setData($data) { $this->data = $data; } public function setMessage($message) { $this->message = $message; } public function isFatal() { return $this->type == static::TYPE_FATAL; } public function matchFilter($filter = array()) { if(!is_array($filter)) { $filter = array(); } $match = true; // by code if(array_key_exists('CODE', $filter)) { $fCode = trim((string) $filter['CODE']); $code = $this->getCode(); if($code != $fCode) { $subCodes = explode('.', $code); $found = false; foreach($subCodes as $sCode) { if($sCode == $fCode) { $found = true; break; } } if(!$found) { $match = false; } } } // by type if(array_key_exists('TYPE', $filter)) { if($this->getType() != trim((string) $filter['TYPE'])) { $match = false; } } return $match; } }
/var/www/axolotl/data/www/rostov.axolotls.ru/bitrix/modules/tasks/lib/util/error.php