| Current Path : /var/www/html/learn/backend/modules/learning/models/ |
| Current File : /var/www/html/learn/backend/modules/learning/models/LearningQuiz.php |
<?php
namespace backend\modules\learning\models;
use Yii;
/**
* This is the model class for table "learning_quiz".
*
* @property int $quiz_id
* @property int|null $chapter_id
* @property string|null $quiz_question
* @property int|null $quiz_sort
* @property string|null $created_at
* @property string|null $created_by
* @property string|null $created_user_type
* @property string|null $updated_at
* @property string|null $updated_by
* @property string|null $updated_user_type
*/
class LearningQuiz extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'learning_quiz';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['chapter_id', 'quiz_sort'], 'integer'],
[['created_at', 'updated_at', 'quiz_question', 'created_by', 'created_user_type', 'updated_by', 'updated_user_type'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'quiz_id' => Yii::t('app', 'Quiz ID'),
'chapter_id' => Yii::t('app', 'Chapter ID'),
'quiz_question' => Yii::t('app', 'Quiz Question'),
'quiz_sort' => Yii::t('app', 'Quiz Sort'),
'created_at' => Yii::t('app', 'Created At'),
'created_by' => Yii::t('app', 'Created By'),
'created_user_type' => Yii::t('app', 'Created User Type'),
'updated_at' => Yii::t('app', 'Updated At'),
'updated_by' => Yii::t('app', 'Updated By'),
'updated_user_type' => Yii::t('app', 'Updated User Type'),
];
}
}