Файловый менеджер - Редактировать - /var/www/axolotl/data/www/axolotls.ru/www/bitrix/modules/crm/lib/automation/trigger/calltrigger.php
Назад
<?php namespace Bitrix\Crm\Automation\Trigger; use Bitrix\Main\Localization\Loc; use Bitrix\Main\Loader; Loc::loadMessages(__FILE__); class CallTrigger extends BaseTrigger { public static function getCode() { return 'CALL'; } public static function getName() { return Loc::getMessage('CRM_AUTOMATION_TRIGGER_CALL_NAME'); } public function checkApplyRules(array $trigger) { if (!parent::checkApplyRules($trigger)) { return false; } if (empty($trigger['APPLY_RULES']['LINE_NUMBER'])) { return true; } $lineA = (string) $trigger['APPLY_RULES']['LINE_NUMBER']; $lineB = (string) $this->getInputData('LINE_NUMBER'); return ($lineA === $lineB); } public static function toArray() { $result = parent::toArray(); if(Loader::includeModule('voximplant') && \CVoxImplantHttp::VERSION > 15) // todo: remove version check in future { $result['LINES'] = array_values(\CVoxImplantConfig::GetLines(false, true)); } return $result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.8 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка