/
mikopbx
/
ModuleAmoCrm
Обзор
Документация
Войти
/
mikopbx
/
ModuleAmoCrm
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
Models/ModuleAmoFailedCdr.php
57 строк
1 KB
Alexey Portnov
Исправил таймауты API и потерю CDR при сбоях. Fixes #44
20 фев 2026, 21:32
20 фев 2026, 21:32
161d078
Код
Авторство
О чём код?
<?php /** * Copyright © MIKO LLC - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by Alexey Portnov, 2 2026 */ namespace Modules\ModuleAmoCrm\Models; use MikoPBX\Modules\Models\ModulesModelsBase; /** * Хранение провальных CDR, которые не удалось отправить в AmoCRM. * * @Indexes( * [name='linkedid', columns=['linkedid'], type=''], * [name='failedAt', columns=['failedAt'], type=''] * ) */ class ModuleAmoFailedCdr extends ModulesModelsBase { /** * @Primary * @Identity * @Column(type="integer", nullable=false) */ public $id; /** * @Column(type="string", nullable=true) */ public $linkedid; /** * @Column(type="integer", nullable=true) */ public $failedAt = 0; /** * @Column(type="string", nullable=true) */ public $reason = ''; /** * @param $calledModelObject * @return void */ public static function getDynamicRelations(&$calledModelObject): void { } public function initialize(): void { $this->setSource('m_ModuleAmoFailedCdr'); parent::initialize(); } }