Skip to content

Commit 713900b

Browse files
authored
Merge pull request #24 from windhoney/develop
删除多余代码
2 parents d130bcc + c89b97f commit 713900b

File tree

5 files changed

+9
-39
lines changed

5 files changed

+9
-39
lines changed

controllers/PermissionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use yii\rbac\Item;
77

88
/**
9-
* PermissionController implements the CRUD actions for AuthItemOld model.
9+
* PermissionController implements the CRUD actions for AuthItem model.
1010
*
1111
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
1212
* @since 1.0

controllers/RoleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use yii\rbac\Item;
77

88
/**
9-
* RoleController implements the CRUD actions for AuthItemOld model.
9+
* RoleController implements the CRUD actions for AuthItem model.
1010
*
1111
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
1212
* @since 1.0

controllers/RuleController.php

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -36,37 +36,7 @@ public function behaviors()
3636
}
3737

3838
/**
39-
* Lists all AuthItemOld models.
40-
*
41-
* @return mixed
42-
*/
43-
public function actionIndex()
44-
{
45-
$searchModel = new BizRuleSearch();
46-
$dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
47-
48-
return $this->render('index', [
49-
'dataProvider' => $dataProvider,
50-
'searchModel' => $searchModel,
51-
]);
52-
}
53-
54-
/**
55-
* Displays a single AuthItemOld model.
56-
*
57-
* @param string $id
58-
*
59-
* @return mixed
60-
*/
61-
public function actionView($id)
62-
{
63-
$model = $this->findModel($id);
64-
65-
return $this->render('view', ['model' => $model]);
66-
}
67-
68-
/**
69-
* Creates a new AuthItemOld model.
39+
* Creates a new AuthItems model.
7040
* If creation is successful, the browser will be redirected to the 'view' page.
7141
*
7242
* @return mixed
@@ -84,7 +54,7 @@ public function actionCreate()
8454
}
8555

8656
/**
87-
* Updates an existing AuthItemOld model.
57+
* Updates an existing AuthItem model.
8858
* If update is successful, the browser will be redirected to the 'view' page.
8959
*
9060
* @param string $id
@@ -104,7 +74,7 @@ public function actionUpdate()
10474
}
10575

10676
/**
107-
* Deletes an existing AuthItemOld model.
77+
* Deletes an existing AuthItem model.
10878
* If deletion is successful, the browser will be redirected to the 'index' page.
10979
*
11080
* @param string $id
@@ -127,12 +97,12 @@ public function actionDelete()
12797
}
12898

12999
/**
130-
* Finds the AuthItemOld model based on its primary key value.
100+
* Finds the AuthItem model based on its primary key value.
131101
* If the model is not found, a 404 HTTP exception will be thrown.
132102
*
133103
* @param string $id
134104
*
135-
* @return AuthItemOld the loaded model
105+
* @return AuthItem the loaded model
136106
* @throws HttpException if the model cannot be found
137107
*/
138108
protected function findModel($id)

models/searchs/AuthItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use yii\rbac\Item;
99

1010
/**
11-
* AuthItemSearch represents the model behind the search form about AuthItemOld.
11+
* AuthItemSearch represents the model behind the search form about AuthItem.
1212
*
1313
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
1414
* @since 1.0

models/searchs/Menu.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use wind\rest\models\Menu as MenuModel;
88

99
/**
10-
* MenuOld represents the model behind the search form about [[\wind\rest\models\MenuOld]].
10+
* Menu represents the model behind the search form about [[\wind\rest\models\Menu]].
1111
*
1212
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
1313
* @since 1.0

0 commit comments

Comments
 (0)