uawdijnntqw1x1x1
IP : 3.145.0.146
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
/
yar.axolotls.ru
/
bitrix
/
modules
/
slam.easyform
/
..
/
crm
/
lib
/
entityadapter.php
/
/
<?php namespace Bitrix\Crm; use Bitrix\Main; class EntityAdapter { protected $sourceEntityTypeID = \CCrmOwnerType::Undefined; protected $destinationEntityTypeID = \CCrmOwnerType::Undefined; protected $mapper = null; protected $nestedAdapter = null; protected $fields = array(); public function __construct($sourceEntityTypeID, $destinationEntityTypeID, Mapper $mapper = null, EntityAdapter $nestedAdapter = null) { $this->sourceEntityTypeID = $sourceEntityTypeID; $this->destinationEntityTypeID = $destinationEntityTypeID; $this->setMapper($mapper); if($nestedAdapter !== null) { $this->nestedAdapter = $nestedAdapter; } } public function getSourceEntityTypeID() { return $this->sourceEntityTypeID; } public function getDestinationEntityTypeID() { return $this->destinationEntityTypeID; } public function getFields() { return $this->nestedAdapter !== null ? $this->nestedAdapter->getFields() : $this->fields; } public function setFields(array $fields = null) { if($this->nestedAdapter !== null) { $this->nestedAdapter->setFields($fields); } else { $this->fields = $fields; } } public function getMapper() { return $this->mapper; } public function setMapper(Mapper $mapper = null) { return $this->mapper = $mapper; } public function getFieldValue($fieldName, $default = null) { if(!is_string($fieldName)) { throw new Main\ArgumentTypeException('fieldName', 'string'); } if($this->mapper !== null) { $fieldName = $this->mapper->getMapping($fieldName); } return $this->nestedAdapter !== null ? $this->nestedAdapter->getFieldValue($fieldName, $default) : (isset($this->fields[$fieldName]) ? $this->fields[$fieldName] : $default); } }
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/slam.easyform/../crm/lib/entityadapter.php