Class dektrium\user\controllers\AdminController
Inheritance | dektrium\user\controllers\AdminController » yii\web\Controller |
---|
AdminController allows you to administrate users.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$finder | dektrium\user\Finder | dektrium\user\controllers\AdminController |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | dektrium\user\controllers\AdminController | |
actionAssignments() | If "dektrium/yii2-rbac" extension is installed, this page displays form where user can assign multiple auth items to user. | dektrium\user\controllers\AdminController |
actionBlock() | Blocks the user. | dektrium\user\controllers\AdminController |
actionConfirm() | Confirms the User. | dektrium\user\controllers\AdminController |
actionCreate() | Creates a new User model. | dektrium\user\controllers\AdminController |
actionDelete() | Deletes an existing User model. | dektrium\user\controllers\AdminController |
actionIndex() | Lists all User models. | dektrium\user\controllers\AdminController |
actionInfo() | Shows information about user. | dektrium\user\controllers\AdminController |
actionUpdate() | Updates an existing User model. | dektrium\user\controllers\AdminController |
actionUpdateProfile() | Updates an existing profile. | dektrium\user\controllers\AdminController |
behaviors() | dektrium\user\controllers\AdminController |
Protected Methods
Method | Description | Defined By |
---|---|---|
findModel() | Finds the User model based on its primary key value. | dektrium\user\controllers\AdminController |
performAjaxValidation() | Performs AJAX validation. | dektrium\user\controllers\AdminController |
Property Details
Method Details
public void __construct ( $id, $module, dektrium\user\Finder $finder, $config = [] ) | ||
$id | string | |
$module | \yii\base\Module | |
$finder | dektrium\user\Finder | |
$config | array |
If "dektrium/yii2-rbac" extension is installed, this page displays form where user can assign multiple auth items to user.
public string actionAssignments ( $id ) | ||
$id | int | |
throws | \yii\web\NotFoundHttpException |
---|
Blocks the user.
public \yii\web\Response actionBlock ( $id ) | ||
$id | int |
Confirms the User.
public \yii\web\Response actionConfirm ( $id ) | ||
$id | int |
Creates a new User model.
If creation is successful, the browser will be redirected to the 'index' page.
public mixed actionCreate ( ) |
Deletes an existing User model.
If deletion is successful, the browser will be redirected to the 'index' page.
public mixed actionDelete ( $id ) | ||
$id | int |
Lists all User models.
public mixed actionIndex ( ) |
Shows information about user.
public string actionInfo ( $id ) | ||
$id | int |
Updates an existing User model.
public mixed actionUpdate ( $id ) | ||
$id | int |
Updates an existing profile.
public mixed actionUpdateProfile ( $id ) | ||
$id | int |
public void behaviors ( ) |
Finds the User model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.
protected dektrium\user\models\User findModel ( $id ) | ||
$id | int | |
return | dektrium\user\models\User | The loaded model |
---|---|---|
throws | \yii\web\NotFoundHttpException | if the model cannot be found |
Performs AJAX validation.
protected void performAjaxValidation ( $model ) | ||
$model | array|\yii\base\Model | |
throws | \yii\base\ExitException |
---|