Blame view

common/models/Country.php 994 Bytes
06ec2844   Administrator   28.03.16
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".

   *

06ec2844   Administrator   28.03.16
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
   */

06ec2844   Administrator   28.03.16
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()

      {

06ec2844   Administrator   28.03.16
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 [

06ec2844   Administrator   28.03.16
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
          ];

      }

  }