| Current Path : /var/www/html/jppmmylatihan/backend/modules/notes/models/ |
| Current File : /var/www/html/jppmmylatihan/backend/modules/notes/models/Notes.php |
<?php
namespace backend\modules\notes\models;
use Yii;
/**
* This is the model class for table "notes".
*
* @property int $notes_id
* @property int|null $notes_course_id
* @property string|null $notes_content
* @property string|null $notes_tag
* @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 Notes extends \yii\db\ActiveRecord {
public $total_notes;
public $course_title;
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'notes';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['notes_course_type'], 'required', 'message' => Yii::t('app', '{attribute} cannot be blank')],
[['notes_course_id'], 'integer'],
[['notes_content', 'notes_tag'], 'string'],
[['created_at', 'updated_at', 'created_by', 'created_user_type', 'updated_by', 'updated_user_type', 'total_notes', 'course_title', 'notes_course_title'], 'safe'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'notes_course_type' => Yii::t('app', 'Course Type'),
'notes_course_title' => Yii::t('app', 'Course Title'),
'notes_id' => Yii::t('app', 'Notes ID'),
'notes_course_id' => Yii::t('app', 'Course Title'),
'notes_content' => Yii::t('app', 'Notes'),
'notes_tag' => Yii::t('app', 'Tag'),
'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'),
];
}
}