Class yeesoft\user\controllers\PermissionController

Inheritanceyeesoft\user\controllers\PermissionController » yeesoft\controllers\admin\BaseController » yeesoft\controllers\BaseController » yii\web\Controller

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_implementedActions array yeesoft\controllers\admin\BaseController

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
findModel() Finds the model based on its primary key value. yeesoft\controllers\admin\BaseController
getRedirectPage() Define redirect page after update, create, delete, etc yeesoft\controllers\admin\BaseController
renderIsAjax() Render ajax or usual depends on request yeesoft\controllers\BaseController

Property Details

$modelClass public property
public yeesoft\models\Permission $modelClass 'yeesoft\models\Permission'
$modelSearchClass public property
public yeesoft\user\models\search\PermissionSearch $modelSearchClass 'yeesoft\user\models\search\PermissionSearch'

Method Details

actionCreate() public method

Creates a new model.

If creation is successful, the browser will be redirected to the 'view' page.

public mixed actionCreate ( )
actionSetChildPermissions() public method

Add or remove child permissions (including routes) and return back to view

public string|\yii\web\Response actionSetChildPermissions ( $id )
$id string
actionSetChildRoutes() public method

Add or remove routes for this permission

public \yii\web\Response actionSetChildRoutes ( $id )
$id string
actionUpdate() public method

Updates an existing model.

If update is successful, the browser will be redirected to the 'view' page.

public mixed actionUpdate ( $id )
$id integer
actionView() public method

public string actionView ( $id )
$id string