/
mikopbx
/
ModuleUsersUI
Обзор
Документация
Войти
/
mikopbx
/
ModuleUsersUI
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
v1.84
Models/AccessGroupsRights.php
82 строки
2 KB
nb
Fix ldap auth
04 июл 2023, 16:12
04 июл 2023, 16:12
2960f84
Код
Авторство
О чём код?
<?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\ModuleUsersUI\Models; use MikoPBX\Modules\Models\ModulesModelsBase; use Phalcon\Mvc\Model\Relation; class AccessGroupsRights extends ModulesModelsBase { /** * @Primary * @Identity * @Column(type="integer", nullable=false) */ public $id; /** * Link to the AccessGroups table * * @Column(type="integer", nullable=false) */ public $group_id; /** * Module id [AdminCabinet, REST API, ModuleID] * * @Column(type="string", nullable=false) */ public $module_id; /** * Controller name * * @Column(type="string", nullable=false) */ public $controller; /** * Actions array encoded as a string * * @Column(type="string", nullable=false) */ public $actions; public function initialize(): void { $this->setSource('m_ModuleUsersUI_AccessGroupsRights'); parent::initialize(); $this->belongsTo( 'group_id', AccessGroups::class, 'id', [ 'alias' => 'AccessGroups', 'foreignKey' => [ 'allowNulls' => false, 'action' => Relation::NO_ACTION, ], ] ); } }