OptionLang.php 836 Bytes
<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "option_lang".
 *
 * @property integer $id
 * @property integer $lang_id
 * @property string $value
 */
class OptionLang extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'option_lang';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'lang_id'], 'required'],
            [['id', 'lang_id'], 'integer'],
            [['value'], 'string']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'lang_id' => Yii::t('app', 'Lang ID'),
            'value' => Yii::t('app', 'Value'),
        ];
    }
}