uawdijnntqw1x1x1
IP : 3.137.223.8
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
/
1c9cb
/
..
/
bitrix
/
modules
/
crm
/
lib
/
entityadapterfactory.php
/
/
<?php namespace Bitrix\Crm; use Bitrix\Main; class EntityAdapterFactory { public static function create(array $fields = null, $sourceEntityTypeID = \CCrmOwnerType::Undefined, $destinationEntityTypeID = \CCrmOwnerType::Undefined) { if(!is_int($sourceEntityTypeID)) { throw new Main\ArgumentTypeException('sourceEntityTypeID', 'integer'); } if(!is_int($destinationEntityTypeID)) { throw new Main\ArgumentTypeException('destinationEntityTypeID', 'integer'); } if($sourceEntityTypeID !== \CCrmOwnerType::Undefined && !\CCrmOwnerType::IsDefined($sourceEntityTypeID)) { $sourceEntityTypeID = \CCrmOwnerType::Undefined; } if($destinationEntityTypeID !== \CCrmOwnerType::Undefined && !\CCrmOwnerType::IsDefined($destinationEntityTypeID)) { $destinationEntityTypeID = \CCrmOwnerType::Undefined; } if(\CCrmOwnerType::IsDefined($sourceEntityTypeID) && !\CCrmOwnerType::IsDefined($destinationEntityTypeID)) { $destinationEntityTypeID = $sourceEntityTypeID; } $adapter = null; if($sourceEntityTypeID !== \CCrmOwnerType::Undefined && $destinationEntityTypeID !== \CCrmOwnerType::Undefined) { if($sourceEntityTypeID === \CCrmOwnerType::Lead) { if($destinationEntityTypeID === \CCrmOwnerType::Company) { $adapter = new EntityAdapter( \CCrmOwnerType::Lead, \CCrmOwnerType::Company, new Mapper(array('COMPANY_TITLE' => 'TITLE')) ); } } elseif($sourceEntityTypeID === \CCrmOwnerType::Company) { if($destinationEntityTypeID === \CCrmOwnerType::Lead) { $adapter = new EntityAdapter( \CCrmOwnerType::Company, \CCrmOwnerType::Lead, new Mapper(array('TITLE' => 'COMPANY_TITLE')) ); } } } if($adapter === null) { $adapter = new EntityAdapter($sourceEntityTypeID, $destinationEntityTypeID); } if($fields !== null) { $adapter->setFields($fields); } return $adapter; } public static function wrap(EntityAdapter $adapter, Mapper $mapper) { return new EntityAdapter( \CCrmOwnerType::Undefined, \CCrmOwnerType::Undefined, $mapper, $adapter ); } }
/var/www/axolotl/data/www/yar.axolotls.ru/1c9cb/../bitrix/modules/crm/lib/entityadapterfactory.php