Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/cvetdv.ru/bitrix/activities/bitrix/eventdrivenactivity/ |
Upload File : |
<?php use Bitrix\Main\Localization\Loc; if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) { die(); } $runtime = CBPRuntime::GetRuntime(); $runtime->IncludeActivityFile('SequenceActivity'); class CBPEventDrivenActivity extends CBPSequenceActivity { public function __construct($name) { parent::__construct($name); $this->arProperties = ['Title' => '']; } public function GetEventActivity() { if (count($this->arActivities) === 0) { return null; } return $this->arActivities[0]; } public static function validateChild($childActivity, $bFirstChild = false) { $arErrors = []; $messageSuffix = CBPHelper::getDistrName() == CBPHelper::DISTR_B24 ? '_B24_MSGVER_1' : ''; if ($bFirstChild) { self::includeActivityFile($childActivity); $child = self::createInstance($childActivity, 'XXX'); if (!($child instanceof IBPEventDrivenActivity)) { $arErrors[] = [ 'code' => 'WrongChildType', 'message' => Loc::getMessage('BPEDA_INVALID_CHILD_1' . $messageSuffix), ]; } } return array_merge($arErrors, parent::validateChild($childActivity, $bFirstChild)); } }