uawdijnntqw1x1x1
IP : 216.73.216.10
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) 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
/
.
/
files
/
need-2-delete
/
mini-borishof.ru1
/
.
/
bitrix
/
modules
/
main
/
lib
/
entity
/
datamanagerevent.php
/
/
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2012 Bitrix */ namespace Bitrix\Main\Entity; class DataManagerEvent extends \Bitrix\Main\Event { protected $entity; /** * @param Base $entity * @param string $type * @param array $parameters */ public function __construct(Base $entity, $type, array $parameters = array()) { parent::__construct($entity->getModule(), $entity->getName().$type, $parameters); $this->entity = $entity; } /** * Returns entity */ public function getEntity() { return $this->entity; } /** * Checks the result of the event for errors, fills the Result object. * Returns true on errors, false on no errors. * * @param Result $result * @return bool */ public function getErrors(Result $result) { $hasErrors = false; if ($this->getResults() != null) { foreach($this->getResults() as $evenResult) { if($evenResult->getResultType() === \Bitrix\Main\EventResult::ERROR) { $hasErrors = true; $result->addErrors($evenResult->getParameters()); } } } return $hasErrors; } /** * Merges the data fields set in the event handlers with the source fields. * Returns a merged array of the data fields from the all event handlers. * * @param array $data * @return array */ public function mergeFields(array $data) { if ($this->getResults() != null) { foreach($this->getResults() as $evenResult) { if($evenResult->getResultType() !== \Bitrix\Main\EventResult::ERROR) { $eventData = $evenResult->getParameters(); if(is_array($eventData) && !empty($eventData)) { $data = array_merge($data, $eventData); } } } } return $data; } }
/var/./files/need-2-delete/mini-borishof.ru1/./bitrix/modules/main/lib/entity/datamanagerevent.php