/
v.bolshakov
/
AIEcosystem-Testing
Обзор
Документация
Войти
/
v.bolshakov
/
AIEcosystem-Testing
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
common/kdf/KTaskType.php
53 строки
1 KB
Developer
Initial commit
03 авг 2026, 17:43
03 авг 2026, 17:43
7433917
Код
Авторство
О чём код?
<?php namespace common\kdf; use common\kdf\base\BaseKdf; use Yii; use yii\helpers\ArrayHelper; /** * Классификатор - типы задач * * @property string $title Название * @property string $code Код * * @author Dmitry E. Semenov <sde.tomsk@gmail.com> * @copyright Self (c) 2024 */ class KTaskType extends BaseKdf { const T_MODEL = 1; const T_ASSISTANT = 2; /** * {@inheritdoc} */ public static function tableName() { return 'k_task_type'; } /** * {@inheritdoc} */ public function rules() { return ArrayHelper::merge(parent::rules(), [ [['title', 'code'], 'required'], [['title', 'code'], 'string', 'max' => 50], [['code'], 'unique'], ]); } /** * {@inheritdoc} */ public function attributeLabels() { return ArrayHelper::merge(parent::attributeLabels(), [ 'title' => Yii::t('app', 'Title'), 'code' => Yii::t('app', 'Code'), ]); } }