Blame view

common/models/TerminLang.php 995 Bytes
b427543e   andryeyev   Итерация 2 (рекур...
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
  <?php
  
  namespace common\models;
  
  use Yii;
  
  /**
   * This is the model class for table "termin_lang".
   *
   * @property integer $termin_id
   * @property string $termin_title
   * @property integer $lang_id
   */
  class TerminLang extends \yii\db\ActiveRecord
  {
      /**
       * @inheritdoc
       */
      public static function tableName()
      {
          return 'termin_lang';
      }
  
      /**
       * @inheritdoc
       */
      public function rules()
      {
          return [
              //[['termin_id', 'lang_id'], 'required'],
              //[['termin_id', 'lang_id'], 'integer'],
ab4d7cb1   andryeyev   Page + Языковая в...
32
              [['termin_title'], 'string']
b427543e   andryeyev   Итерация 2 (рекур...
33
34
35
36
37
38
39
40
41
          ];
      }
  
      /**
       * @inheritdoc
       */
      public function attributeLabels()
      {
          return [
ab4d7cb1   andryeyev   Page + Языковая в...
42
43
44
              'termin_id' => 'Термин ID',
              'termin_title' => 'Название',
              'lang_id' => 'ID языка',
b427543e   andryeyev   Итерация 2 (рекур...
45
46
          ];
      }
7765bf97   Dmitryi   menu no perevod
47
48
49
50
51
  
      public function getMenu()
      {
          return $this->hasMany(Menu::className(), ['termin_id' => 'termin_id']);
      }
b427543e   andryeyev   Итерация 2 (рекур...
52
  }