| Current Path : /var/www/html/learn/backend/modules/learning/models/ |
| Current File : /var/www/html/learn/backend/modules/learning/models/LearningQuizAnswer.php |
<?php
namespace backend\modules\learning\models;
use Yii;
/**
* This is the model class for table "learning_quiz_answer".
*
* @property int $answer_id
* @property int|null $quiz_id
* @property string|null $answer
* @property int|null $answer_correct
* @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 LearningQuizAnswer extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'learning_quiz_answer';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['quiz_id', 'answer_correct'], 'integer'],
[['answer'], 'string'],
[['created_at', 'updated_at', 'created_by', 'created_user_type', 'updated_by', 'updated_user_type'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'answer_id' => Yii::t('app', 'Answer ID'),
'quiz_id' => Yii::t('app', 'Quiz ID'),
'answer' => Yii::t('app', 'Answer'),
'answer_correct' => Yii::t('app', 'Answer Correct'),
'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'),
];
}
}