| Current Path : /var/www/html/learn/backend/modules/learning/models/ |
| Current File : /var/www/html/learn/backend/modules/learning/models/LearningEnroll.php |
<?php
namespace backend\modules\learning\models;
use Yii;
/**
* This is the model class for table "learning_enroll".
*
* @property int $enroll_id
* @property int|null $frontend_user_id
* @property int|null $learning_main
* @property string|null $enroll_status
* @property string|null $enroll_start
* @property string|null $enroll_end
* @property string|null $enroll_progress
*/
class LearningEnroll extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'learning_enroll';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['frontend_user_id', 'learning_main'], 'integer'],
[['enroll_start', 'enroll_end', 'enroll_status', 'enroll_progress', 'last_access', 'enroll_certificate', 'payment_id'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'enroll_id' => Yii::t('app', 'Enroll ID'),
'frontend_user_id' => Yii::t('app', 'Frontend User ID'),
'learning_main' => Yii::t('app', 'Learning Main'),
'enroll_status' => Yii::t('app', 'Enroll Status'),
'enroll_start' => Yii::t('app', 'Enroll Start'),
'enroll_end' => Yii::t('app', 'Enroll End'),
'enroll_progress' => Yii::t('app', 'Enroll Progress'),
];
}
}