Your IP : 216.73.216.79


Current Path : /var/www/html/ebookingdbkl/common/models/
Upload File :
Current File : /var/www/html/ebookingdbkl/common/models/ErrorLog.php

<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "error_log".
 *
 * @property int $error_log_id
 * @property string $hash
 * @property string|null $module
 * @property string|null $type
 * @property string|null $action
 * @property string|null $stack
 * @property string|null $path
 * @property string|null $created_at
 * @property int|null $created_by
 */
class ErrorLog extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'error_log';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['hash'], 'required'],
            [['stack'], 'string'],
            [['created_at'], 'safe'],
            [['created_by'], 'integer'],
            [['hash'], 'string', 'max' => 128],
            [['module', 'action'], 'string', 'max' => 250],
            [['type'], 'string', 'max' => 45],
            [['path'], 'string', 'max' => 1000],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'error_log_id' => Yii::t('app', 'Error Log ID'),
            'hash' => Yii::t('app', 'Hash'),
            'module' => Yii::t('app', 'Module'),
            'type' => Yii::t('app', 'Type'),
            'action' => Yii::t('app', 'Action'),
            'stack' => Yii::t('app', 'Stack'),
            'path' => Yii::t('app', 'Path'),
            'created_at' => Yii::t('app', 'Created At'),
            'created_by' => Yii::t('app', 'Created By'),
        ];
    }
}