/
mikopbx
/
ModuleAutoDialer
Обзор
Документация
Войти
/
mikopbx
/
ModuleAutoDialer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
App/Forms/ModuleAutoDialerExtensionForm.php
56 строк
2 KB
apor
Добавил возможность описать внутренние номера для опросов
24 окт 2024, 14:56
24 окт 2024, 14:56
0321aaa
Код
Авторство
О чём код?
<?php /* * MikoPBX - free phone system for small business * Copyright © 2017-2023 Alexey Portnov and Nikolay Beketov * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program. * If not, see <https://www.gnu.org/licenses/>. */ namespace Modules\ModuleAutoDialer\App\Forms; use Phalcon\Forms\Element\Hidden; use Phalcon\Forms\Element\Select; use Phalcon\Forms\Form; use Phalcon\Forms\Element\Text; class ModuleAutoDialerExtensionForm extends Form { public function initialize($entity = null, $options = null) :void { $this->add(new Hidden('id')); $this->add(new Text('exten')); $this->add(new Text('name')); $this->add(new Select('pollingIdOK', $options['pollings'], [ 'using' => [ 'id', 'name', ], 'value' => $entity->pollingIdOK, 'useEmpty' => false, 'class' => 'ui selection dropdown b24_regions-select', ] )); $this->add(new Select('pollingIdFAIL', $options['pollings'], [ 'using' => [ 'id', 'name', ], 'value' => $entity->pollingIdFAIL, 'useEmpty' => false, 'class' => 'ui selection dropdown b24_regions-select', ] )); } }