commit | author | age
|
2207d6
|
1 |
<?php |
W |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
use Yii; |
|
6 |
|
|
7 |
/** |
|
8 |
* This is the model class for table "{{%plugin_cat_rel}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property string $plugin_name |
|
12 |
* @property string $plugin_cat_name |
|
13 |
*/ |
|
14 |
class PluginCatRel extends ModelActiveRecord |
|
15 |
{ |
|
16 |
/** |
|
17 |
* {@inheritdoc} |
|
18 |
*/ |
|
19 |
public static function tableName() |
|
20 |
{ |
|
21 |
return '{{%plugin_cat_rel}}'; |
|
22 |
} |
|
23 |
|
|
24 |
/** |
|
25 |
* {@inheritdoc} |
|
26 |
*/ |
|
27 |
public function rules() |
|
28 |
{ |
|
29 |
return [ |
|
30 |
[['plugin_name', 'plugin_cat_name'], 'required'], |
|
31 |
[['plugin_name', 'plugin_cat_name'], 'string', 'max' => 255], |
|
32 |
]; |
|
33 |
} |
|
34 |
|
|
35 |
/** |
|
36 |
* {@inheritdoc} |
|
37 |
*/ |
|
38 |
public function attributeLabels() |
|
39 |
{ |
|
40 |
return [ |
|
41 |
'id' => 'ID', |
|
42 |
'plugin_name' => 'Plugin Name', |
|
43 |
'plugin_cat_name' => 'Plugin Cat Name', |
|
44 |
]; |
|
45 |
} |
|
46 |
} |