Your IP : 216.73.216.79


Current Path : /var/www/html/ekursus/backend/models/
Upload File :
Current File : /var/www/html/ekursus/backend/models/Takwim.php

<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "takwim".
 *
 * @property integer $id
 * @property string $title
 * @property string $description
 * @property string $start_dt
 * @property string $end_dt
 * @property string $created_at
 * @property integer $created_by
 * @property string $updated_at
 * @property integer $updated_by
 */
class Takwim extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'takwim';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['description','dewan','nama_mesyuarat'], 'string'],
            [['created_at', 'updated_at','start_dt','end_dt'], 'safe'],
            [['created_by', 'updated_by'], 'integer'],
            [['title'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'title' => Yii::t('app', 'Tajuk'),
            'description' => Yii::t('app', 'Penerangan'),
            'dewan' => Yii::t('app', 'Dewan'),
            'nama_mesyuarat' => Yii::t('app', 'Nama Mesyuarat'),
            'start_dt' => Yii::t('app', 'Tarikh Mula'),
            'end_dt' => Yii::t('app', 'Tarikh Akhir'),
            'created_at' => Yii::t('app', 'Dicipta Pada'),
            'created_by' => Yii::t('app', 'Dicipta Oleh'),
            'updated_at' => Yii::t('app', 'Dikemas Kini Pada'),
            'updated_by' => Yii::t('app', 'Dikemas kini Oleh'),
        ];
    }
}