Your IP : 216.73.216.79


Current Path : /var/www/html/mswp/common/models/
Upload File :
Current File : /var/www/html/mswp/common/models/NotificationLog.php

<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "notification_log".
 *
 * @property int $noti_id
 * @property int|null $noti_receiver_id
 * @property int|null $noti_sender_id
 * @property string|null $noti_title
 * @property string|null $noti_content
 * @property string|null $noti_url
 * @property int|null $noti_read_status
 * @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 NotificationLog extends \yii\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return 'notification_log';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['noti_receiver_id', 'noti_title', 'noti_content', 'noti_read_status'], 'required'],
            [['noti_receiver_id', 'noti_sender_id', 'noti_read_status'], 'integer'],
            [['noti_content'], 'string'],
            [['created_at', 'updated_at', 'noti_title', 'noti_url', 'created_by', 'created_user_type', 'updated_by', 'updated_user_type'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'noti_id' => Yii::t('app', 'Noti ID'),
            'noti_receiver_id' => Yii::t('app', 'Receiver Name'),
            'noti_sender_id' => Yii::t('app', 'Sender Name'),
            'noti_title' => Yii::t('app', 'Title'),
            'noti_content' => Yii::t('app', 'Content'),
            'noti_url' => Yii::t('app', 'URL'),
            'noti_read_status' => Yii::t('app', 'Read Status'),
            'created_at' => Yii::t('app', 'Log Date & Time'),
            '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'),
        ];
    }

}