Файловый менеджер - Редактировать - /var/www/axolotl/data/www/ekb.axolotls.ru/cf5ac/trigger.php.tar
Назад
var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/bizproc/lib/copy/trigger.php 0000664 00000002202 14765722716 0025051 0 ustar 00 <?php namespace Bitrix\Bizproc\Copy; use Bitrix\Bizproc\Copy\Implement\Trigger as Implementer; use Bitrix\Main\Copy\ContainerCollection; use Bitrix\Main\Copy\Copyable; use Bitrix\Main\Result; class Trigger implements Copyable { private $implementer; private $implementerName; private $result; public function __construct(Implementer $implementer) { $this->implementer = $implementer; $this->implementerName = get_class($implementer); $this->result = new Result(); } /** * Copies entity. * * @param ContainerCollection $containerCollection * @return Result */ public function copy(ContainerCollection $containerCollection) { $result = [$this->implementerName => []]; foreach ($containerCollection as $container) { $workflowTemplateId = $container->getEntityId(); $fields = $this->implementer->getFields($workflowTemplateId); $fields = $this->implementer->prepareFieldsToCopy($fields); $copiedWorkflowTemplateId = $this->implementer->add($fields); $result[$this->implementerName][$workflowTemplateId] = $copiedWorkflowTemplateId; } $this->result->setData($result); return $this->result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка