File.php 839 Bytes
<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "file".
 *
 * @property integer $file_id
 * @property integer $status
 * @property string $name
 * @property string $dir
 */
class File extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'file';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['status'], 'integer'],
            [['name'], 'string', 'max' => 50],
            [['dir'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'file_id' => 'File ID',
            'status' => 'Status',
            'name' => 'Name',
            'dir' => 'Dir',
        ];
    }
}