Commit 86aa54e02d88732650f3799ccd482ab93ffdfe7a

Authored by Administrator
1 parent 2fe7b5aa

Importers CRUD

Showing 1 changed file with 0 additions and 96 deletions   Show diff stats
backend/models/Importer.php deleted
1 -<?php  
2 -  
3 -namespace backend\models;  
4 -  
5 -use Yii;  
6 -use backend\components\base\BaseActiveRecord;  
7 -  
8 -/**  
9 - * This is the model class for table "{{%importer}}".  
10 - *  
11 - * @property integer $id  
12 - * @property string $code  
13 - * @property string $name  
14 - * @property string $name_price  
15 - * @property string $currency_id  
16 - * @property string $delivery  
17 - * @property string $email  
18 - * @property string $info  
19 - * @property integer $active  
20 - * @property integer $PARSER_IS_ACTIVE  
21 - * @property string $PARSER_COLUMN_COUNT  
22 - * @property string $PARSER_FIELD_BRAND  
23 - * @property string $PARSER_FIELD_ARTICLE  
24 - * @property integer $PARSER_FIELD_ARTICLE_PREFIX  
25 - * @property string $PARSER_FIELD_PRICE  
26 - * @property string $PARSER_FIELD_DESCR  
27 - * @property string $PARSER_FIELD_BOX  
28 - * @property string $PARSER_FIELD_ADD_BOX  
29 - * @property string $PARSER_FIELD_GROUP_RG  
30 - * @property string $PARSER_FIELD_SIGN  
31 - * @property double $PARSER_FIELD_MULTIPLIER  
32 - * @property string $price_date_update  
33 - */  
34 -class Importer extends BaseActiveRecord  
35 -{  
36 - /**  
37 - * @inheritdoc  
38 - */  
39 - public static function tableName()  
40 - {  
41 - return '{{%importer}}';  
42 - }  
43 -  
44 - /**  
45 - * @inheritdoc  
46 - */  
47 - public function rules()  
48 - {  
49 - return [  
50 - [['code', 'name', 'currency_id', 'delivery', 'price_date_update'], 'required'],  
51 - [['name_price', 'email', 'PARSER_FIELD_SIGN', 'info'], 'safe'],  
52 - [['currency_id', 'active', 'PARSER_IS_ACTIVE', 'PARSER_COLUMN_COUNT', 'PARSER_FIELD_BRAND', 'PARSER_FIELD_ARTICLE', 'PARSER_FIELD_ARTICLE_PREFIX', 'PARSER_FIELD_PRICE', 'PARSER_FIELD_DESCR', 'PARSER_FIELD_BOX', 'PARSER_FIELD_ADD_BOX', 'PARSER_FIELD_GROUP_RG'], 'integer'],  
53 - [['info'], 'string'],  
54 - [['PARSER_FIELD_MULTIPLIER'], 'number'],  
55 - [['code', 'name', 'name_price', 'delivery', 'email'], 'string', 'max' => 254],  
56 - [['PARSER_FIELD_SIGN'], 'string', 'max' => 1],  
57 - // [['price_date_update'], 'string', 'max' => 15],  
58 - [['code'], 'unique'],  
59 - [['name'], 'unique']  
60 - ];  
61 - }  
62 -  
63 - /**  
64 - * @inheritdoc  
65 - */  
66 - public function attributeLabels()  
67 - {  
68 - return [  
69 - 'id' => Yii::t('app', 'ID'),  
70 - 'code' => Yii::t('app', 'Code'),  
71 - 'name' => Yii::t('app', 'Name'),  
72 - 'name_price' => Yii::t('app', 'Name Price'),  
73 - 'currency_id' => Yii::t('app', 'Currency ID'),  
74 - 'delivery' => Yii::t('app', 'Delivery'),  
75 - 'email' => Yii::t('app', 'Email'),  
76 - 'info' => Yii::t('app', 'Info'),  
77 - 'active' => Yii::t('app', 'Active'),  
78 - 'PARSER_IS_ACTIVE' => Yii::t('app', 'Parser Is Active'),  
79 - 'PARSER_COLUMN_COUNT' => Yii::t('app', 'Parser Column Count'),  
80 - 'PARSER_FIELD_BRAND' => Yii::t('app', 'Parser Field Brand'),  
81 - 'PARSER_FIELD_ARTICLE' => Yii::t('app', 'Parser Field Article'),  
82 - 'PARSER_FIELD_ARTICLE_PREFIX' => Yii::t('app', 'Parser Field Article Prefix'),  
83 - 'PARSER_FIELD_PRICE' => Yii::t('app', 'Parser Field Price'),  
84 - 'PARSER_FIELD_DESCR' => Yii::t('app', 'Parser Field Descr'),  
85 - 'PARSER_FIELD_BOX' => Yii::t('app', 'Parser Field Box'),  
86 - 'PARSER_FIELD_ADD_BOX' => Yii::t('app', 'Parser Field Add Box'),  
87 - 'PARSER_FIELD_GROUP_RG' => Yii::t('app', 'Parser Field Group Rg'),  
88 - 'PARSER_FIELD_SIGN' => Yii::t('app', 'Parser Field Sign'),  
89 - 'PARSER_FIELD_MULTIPLIER' => Yii::t('app', 'Parser Field Multiplier'),  
90 - 'price_date_update' => Yii::t('app', 'Price Date Update'),  
91 - ];  
92 - }  
93 -  
94 -  
95 -  
96 -}