uawdijnntqw1x1x1
IP : 3.148.167.99
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
/
samara.axolotls.ru
/
bitrix
/
modules
/
rpa
/
lib
/
factory.php
/
/
<?php namespace Bitrix\Rpa; use Bitrix\Main\ORM\Entity; use Bitrix\Main\UserField\Internal\TypeFactory; use Bitrix\Rpa\Model\PrototypeItem; use Bitrix\Rpa\Model\Item; use Bitrix\Rpa\Model\PrototypeItemIndex; use Bitrix\Rpa\Model\TypeTable; class Factory extends TypeFactory { protected $itemIndexEntities = []; /** * @return TypeTable */ public function getTypeDataClass(): string { return TypeTable::class; } public function getItemPrototypeDataClass(): string { return PrototypeItem::class; } public function getCode(): string { return 'rpa'; } public function getItemParentClass(): string { return Item::class; } public function getAddCommand(Item $item): Command { return new Command\Add($item); } public function getUpdateCommand(Item $item): Command { return new Command\Update($item); } public function getDeleteCommand(Item $item): Command { return new Command\Delete($item); } public function getItemIndexPrototypeDataClass(): string { return PrototypeItemIndex::class; } /** * @param $type * @return PrototypeItemIndex */ public function getItemIndexDataClass($type): string { return $this->getItemIndexEntity($type)->getDataClass(); } public function getItemIndexEntity($type): Entity { $typeData = $this->getTypeDataClass()::resolveType($type); if(!empty($typeData) && isset($this->itemIndexEntities[$typeData['ID']])) { return $this->itemIndexEntities[$typeData['ID']]; } $entity = $this->getTypeDataClass()::compileItemIndexEntity($type); if($entity) { $this->itemIndexEntities[$typeData['ID']] = $entity; } return $entity; } }
/var/www/axolotl/data/www/samara.axolotls.ru/bitrix/modules/rpa/lib/factory.php