Blame view

common/models/partners/PartnerLang.php 1.33 KB
d35e15a6   alex   partners block test
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
  <?php
      
      namespace common\models\partners;
      
      use yii\db\ActiveRecord;
      
      /**
       * Class SpeakerLang
       *
       * @property string  $description
       * @property string  $title
       * @property integer $partner_id
       * @property integer $language_id
       * @package common\models\page
       */
      class PartnerLang extends ActiveRecord
      {
          public static function primaryKey()
          {
              return [
                  'partner_id',
                  'language_id',
              ];
          }
          
          public function rules()
          {
              return [
                  [
                      [
                          'title',
                          'description',
                      ],
                      'string',
                  ],
                  [
                      [
                          'partner_id',
                          'language_id',
                      ],
                      'integer',
                  ],
              ];
          }
          
          public static function tableName()
          {
              return 'partner_lang';
          }
          
          public function attributeLabels()
          {
              return [
                  'title'         => \Yii::t('app', 'Partner title'),
                  'description' => \Yii::t('app', 'Partner description'),
  
              ];
          }
      }