02524a34
Yarik
test
|
1
|
<?php
|
eb7e82fb
Administrator
29.02.16
|
2
3
4
5
6
7
8
9
|
namespace common\models;
use Yii;
/**
* This is the model class for table "country".
*
|
02524a34
Yarik
test
|
10
11
12
13
|
* @property integer $country_id
* @property integer $oid
* @property string $country_name
* @property string $country_name_en
|
eb7e82fb
Administrator
29.02.16
|
14
|
*/
|
02524a34
Yarik
test
|
15
|
class Country extends \yii\db\ActiveRecord
|
eb7e82fb
Administrator
29.02.16
|
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'country';
}
/**
* @inheritdoc
*/
public function rules()
{
|
02524a34
Yarik
test
|
30
31
32
|
return [
[['oid'], 'integer'],
[['country_name', 'country_name_en'], 'string', 'max' => 255],
|
eb7e82fb
Administrator
29.02.16
|
33
34
35
36
37
38
39
40
41
|
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
|
02524a34
Yarik
test
|
42
43
44
45
|
'country_id' => Yii::t('app', 'Country ID'),
'oid' => Yii::t('app', 'Oid'),
'country_name' => Yii::t('app', 'Country Name'),
'country_name_en' => Yii::t('app', 'Country Name En'),
|
eb7e82fb
Administrator
29.02.16
|
46
47
48
|
];
}
}
|