/
qwazarr
/
EducationalPractice
Обзор
Документация
Войти
/
qwazarr
/
EducationalPractice
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
models/LessonTopic.php
53 строки
1 KB
qwazarr
'Расписание'
28 июн 2026, 17:12
28 июн 2026, 17:12
9d84635
Код
Авторство
О чём код?
<?php namespace app\models; use Yii; /** * This is the model class for table "lesson_topic". * * @property int $id * @property int $lesson_id * @property string $topic * @property int|null $is_done */ class LessonTopic extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return 'lesson_topic'; } /** * {@inheritdoc} */ public function rules() { return [ [['is_done'], 'default', 'value' => 0], [['lesson_id', 'topic'], 'required'], [['lesson_id', 'is_done'], 'integer'], [['topic'], 'string', 'max' => 255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => Yii::t('app', 'Идентификатор'), 'lesson_id' => Yii::t('app', 'Идентификатор урока'), 'topic' => Yii::t('app', 'Тема'), 'is_done' => Yii::t('app', 'Пройдено/Не пройдено'), ]; } }