Your IP : 216.73.216.79


Current Path : /var/www/html/helpdesk/models/
Upload File :
Current File : /var/www/html/helpdesk/models/Ticket.php

<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "ticket".
 *
 * @property int $id
 * @property string $uuid
 * @property int $user_id
 * @property string $ticket_no
 * @property string $type
 * @property string $summary
 * @property string $details
 * @property string $ticket_status
 * @property string $staff_status
 * @property int $staff_pic
 * @property string $staff_remarks
 * @property string $submit_at
 */
class Ticket extends \yii\db\ActiveRecord {

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

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['type', 'summary', 'details', 'project_id'], 'required'],
            [['staff_remarks', 'user_id', 'staff_pic', 'staff_pic2', 'ticket_status', 'staff_status', 'ticket_no', 'submit_at', 'uuid', 'level', 'file_attach',
            'updated_at', 'updated_by', 'closed_at', 'closed_by'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'uuid' => 'Uuid',
            'user_id' => 'Nama Pengguna',
            'ticket_no' => 'No. Tiket',
            'type' => 'Jenis',
            'summary' => 'Ringkasan Masalah',
            'details' => 'Keterangan Masalah',
            'ticket_status' => 'Status Tiket',
            'staff_status' => 'Status Tindakan',
            'staff_pic' => 'Pegawai Bertanggunggjawab 1',
            'staff_pic2' => 'Pegawai Bertanggunggjawab 2',
            'staff_remarks' => 'Catatan',
            'submit_at' => 'Tarikh & Masa Dihantar',
            'level' => 'Keutamaan',
            'project_id' => 'Nama Projek',
            'file_attach' => 'Lampiran',
            'updated_at' => 'Tarikh & Masa Dikemaskini',
            'updated_by' => 'Dikemaskini Oleh',
            'closed_at' => 'Tarikh & Masa Ditutup',
            'closed_by' => 'Ditutup Oleh'
        ];
    }

}