/
mikopbx
/
ModuleTelegramProvider
Обзор
Документация
Войти
/
mikopbx
/
ModuleTelegramProvider
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
Models/ModuleTelegramProvider.php
111 строк
2 KB
apor
Заменил проект madeline на go-tdlib и telebot.v3
18 авг 2022, 15:46
18 авг 2022, 15:46
d4a2315
Код
Авторство
О чём код?
<?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 2019 */ /* * https://docs.phalcon.io/4.0/en/db-models * */ namespace Modules\ModuleTelegramProvider\Models; use MikoPBX\Common\Models\Providers; use MikoPBX\Modules\Models\ModulesModelsBase; use Phalcon\Mvc\Model\Relation; class ModuleTelegramProvider extends ModulesModelsBase { /** * @Primary * @Identity * @Column(type="integer", nullable=false) */ public $id; /** * * @Column(type="string", nullable=true) */ public $api_id = ''; /** * * @Column(type="string", nullable=true) */ public $api_hash = ''; /** * * @Column(type="string", nullable=true) */ public $phone_number = ''; /** * * @Column(type="string", nullable=true) */ public $businessCardText = ''; /** * * @Column(type="string", nullable=true) */ public $keyboardText = ''; /** * * @Column(type="string", nullable=true) */ public $autoAnswerText = ''; /** * * @Column(type="string", nullable=true) */ public $callbackQueue = ''; /** * * @Column(type="integer", nullable=true) */ public $priority = '0'; /** * * @Column(type="integer", nullable=true) */ public $disable = '0'; /** * * @Column(type="string", nullable=true) */ public $botId = ''; /** * Returns dynamic relations between module models and common models * MikoPBX check it in ModelsBase after every call to keep data consistent * * There is example to describe the relation between Providers and ModuleTelegramProvider models * * It is important to duplicate the relation alias on message field after Models\ word * * @param $calledModelObject * * @return void */ public static function getDynamicRelations(&$calledModelObject): void { } public function initialize(): void { $this->setSource('m_ModuleTelegramProvider'); parent::initialize(); } }