You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
930 B
48 lines
930 B
5 years ago
|
<?php
|
||
|
|
||
|
namespace app\models;
|
||
|
|
||
|
use Yii;
|
||
|
|
||
|
/**
|
||
|
* This is the model class for table "{{%auth_role_permission}}".
|
||
|
*
|
||
|
* @property integer $id
|
||
|
* @property integer $role_id
|
||
|
* @property string $permission_name
|
||
|
*/
|
||
|
class AuthRolePermission extends \yii\db\ActiveRecord
|
||
|
{
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public static function tableName()
|
||
|
{
|
||
|
return '{{%auth_role_permission}}';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function rules()
|
||
|
{
|
||
|
return [
|
||
|
[['role_id', 'permission_name'], 'required'],
|
||
|
[['role_id'], 'integer'],
|
||
|
[['permission_name'], 'string', 'max' => 64],
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function attributeLabels()
|
||
|
{
|
||
|
return [
|
||
|
'id' => 'ID',
|
||
|
'role_id' => 'Role ID',
|
||
|
'permission_name' => 'Permission Name',
|
||
|
];
|
||
|
}
|
||
|
}
|