uawdijnntqw1x1x1
IP : 18.188.123.155
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
/
novosibirsk.axolotls.ru
/
bitrix
/
modules
/
rpa
/
lib
/
command
/
delete.php
/
/
<?php namespace Bitrix\Rpa\Command; use Bitrix\Main\Result; use Bitrix\Rpa\Command; use Bitrix\Rpa\Driver; use Bitrix\Rpa\Integration\Bizproc; class Delete extends Command { protected $historyItem; public function checkAccess(): Result { $result = new Result(); $userPermissions = Driver::getInstance()->getUserPermissions($this->userId); if(!$userPermissions->canDeleteItem($this->item)) { $result->addError($this->getDeletePermissionDeniedError($this->item->getName())); } return $result; } public function checkStage(): Result { return new Result(); } protected function save(): Result { $this->historyItem = clone $this->item; return $this->item->delete(); } protected function sendPullEvent(): bool { return Driver::getInstance()->getPullManager()->sendItemDeletedEvent($this->historyItem); } protected function runAutomation(): Result { return Bizproc\Listener::onItemDelete($this->historyItem ?? $this->item); } /** * There is not need to save to history because it will be purged right after deleting element * * @return bool */ public function isSaveToHistoryEnabled(): bool { return false; } }
/var/www/axolotl/data/www/novosibirsk.axolotls.ru/bitrix/modules/rpa/lib/command/delete.php