/
v.bolshakov
/
AIEcosystem-Testing
Обзор
Документация
Войти
/
v.bolshakov
/
AIEcosystem-Testing
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
common/kdf/KSystem.php
71 строка
1 KB
Developer
Initial commit
03 авг 2026, 17:43
03 авг 2026, 17:43
7433917
Код
Авторство
О чём код?
<?php namespace common\kdf; use common\helpers\ArrayHelper; use Yii; /** * This is the model class for table "k_system". * * @property string|null $title Title * @property string|null $code Code * @property string|null $url URL * * @author Dmitry E. Semenov <sde.tomsk@gmail.com> * @copyright Self (c) 2023 */ class KSystem extends \common\kdf\base\BaseKdf { // ERP const ERP = 1; // MemoQ const MEMOQ = 2; // DeepL const DEEPL = 3; // Google const GOOGLE = 4; // ModernMT const MODERNMT = 5; // Yandex const YANDEX = 6; // Trados const TRADOS = 7; // Code2 const Code2 = 8; // Code3 const Code3 = 9; // Xliff const XLIFF = 10; /** * {@inheritdoc} */ public static function tableName() { return 'k_system'; } /** * {@inheritdoc} */ public function rules() { return ArrayHelper::merge(parent::rules(), [ [['title', 'code', 'url'], 'string', 'max' => 255], [['code'], 'unique'], ]); } /** * {@inheritdoc} */ public function attributeLabels() { return ArrayHelper::merge(parent::attributeLabels(), [ 'title' => Yii::t('app', 'Title'), 'code' => Yii::t('app', 'Code'), 'url' => Yii::t('app', 'URL'), ]); } }