Manufacturers.php 2.51 KB
<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "w_manufacturers".
 *
 * @property integer $MFA_ID
 * @property integer $MFA_PC_MFC
 * @property integer $MFA_CV_MFC
 * @property integer $MFA_AXL_MFC
 * @property integer $MFA_ENG_MFC
 * @property integer $MFA_ENG_TYP
 * @property string $MFA_MFC_CODE
 * @property string $MFA_BRAND
 * @property integer $MFA_MF_NR
 * @property integer $MY_SORT
 * @property integer $MY_ACTIVE
 * @property string $MY_IMG
 * @property integer $MY_DEFAULT
 * @property string $name
 * @property string $content
 * @property string $title
 * @property string $kwords
 * @property string $descr
 * @property string $h1
 * @property string $original_url
 */
class Manufacturers extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'w_manufacturers';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['MFA_ID', 'MY_SORT', 'MY_ACTIVE', 'MY_IMG', 'MY_DEFAULT', 'name', 'content', 'title', 'kwords', 'descr', 'h1', 'original_url'], 'required'],
            [['MFA_ID', 'MFA_PC_MFC', 'MFA_CV_MFC', 'MFA_AXL_MFC', 'MFA_ENG_MFC', 'MFA_ENG_TYP', 'MFA_MF_NR', 'MY_SORT', 'MY_ACTIVE', 'MY_DEFAULT'], 'integer'],
            [['content'], 'string'],
            [['MFA_MFC_CODE'], 'string', 'max' => 30],
            [['MFA_BRAND'], 'string', 'max' => 60],
            [['MY_IMG'], 'string', 'max' => 254],
            [['name', 'title', 'kwords', 'descr', 'h1', 'original_url'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'MFA_ID' => 'ID',
            'MFA_PC_MFC' => 'Mfa  Pc  Mfc',
            'MFA_CV_MFC' => 'Mfa  Cv  Mfc',
            'MFA_AXL_MFC' => 'Mfa  Axl  Mfc',
            'MFA_ENG_MFC' => 'Mfa  Eng  Mfc',
            'MFA_ENG_TYP' => 'Mfa  Eng  Typ',
            'MFA_MFC_CODE' => 'Mfa  Mfc  Code',
            'MFA_BRAND' => 'Название',
            'MFA_MF_NR' => 'Mfa  Mf  Nr',
            'MY_SORT' => 'Сортировка',
            'MY_ACTIVE' => 'Выводить',
            'MY_IMG' => 'My  Img',
            'MY_DEFAULT' => 'My  Default',
            'name' => 'Name',
            'content' => 'Content',
            'title' => 'Title',
            'kwords' => 'Kwords',
            'descr' => 'Descr',
            'h1' => 'H1',
            'original_url' => 'Ссылка на оригинальный каталог',
        ];
    }
}