Manufacturers.php
2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?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' => 'Mfa 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 Brand',
'MFA_MF_NR' => 'Mfa Mf Nr',
'MY_SORT' => 'My Sort',
'MY_ACTIVE' => 'My Active',
'MY_IMG' => 'My Img',
'MY_DEFAULT' => 'My Default',
'name' => 'Name',
'content' => 'Content',
'title' => 'Title',
'kwords' => 'Kwords',
'descr' => 'Descr',
'h1' => 'H1',
'original_url' => 'Original Url',
];
}
}