Class lispa\amos\admin\controllers\base\UserProfileController
Class UserProfileController UserProfileController implements the CRUD actions for UserProfile model.
Public Properties
Protected Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
PasswordCasuale() | lispa\amos\admin\controllers\base\UserProfileController | |
downloadFile() | lispa\amos\admin\controllers\base\UserProfileController | |
findModel() | Finds the modelObj model based on its primary key value. | lispa\amos\core\controllers\CrudController |
getDefaultCurrentView() | lispa\amos\core\controllers\CrudController | |
getRules() | lispa\amos\core\controllers\BaseController | |
redirectOnCreate() | lispa\amos\admin\controllers\base\UserProfileController | |
redirectOnUpdate() | lispa\amos\admin\controllers\base\UserProfileController | |
setCreateNewBtnParams() | Set a view param used in \lispa\amos\core\forms\CreateNewButtonWidget | lispa\amos\admin\controllers\base\UserProfileController |
setUserLanguage() | lispa\amos\core\controllers\AmosController |
Events
Event | Type | Description | Defined By |
---|---|---|---|
EVENT_AFTER_ACTION | yii\base\ActionEvent | An event raised right after executing a controller action. | yii\base\Controller |
EVENT_BEFORE_ACTION | yii\base\ActionEvent | An event raised right before executing a controller action. | yii\base\Controller |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
AFTER_FINDMODEL_EVENT | "afterFindModel" | lispa\amos\core\controllers\CrudController | |
BEFORE_FINDMODEL_EVENT | "beforeFindModel" | lispa\amos\core\controllers\CrudController |
Property Details
Method Details
protected string PasswordCasuale ( $lunghezza = 8 ) | ||
$lunghezza | integer |
Creates a new UserProfile model.
If creation is successful, the browser will be redirected to the 'view' page.
public string|yii\web\Response actionCreate ( ) | ||
throws | yii\base\InvalidConfigException |
---|
Deletes an existing UserProfile model.
If deletion is successful, the browser will be redirected to the 'index' page.
public yii\web\Response actionDelete ( $id ) | ||
$id | integer | |
throws | yii\db\StaleObjectException | |
---|---|---|
throws | yii\web\NotFoundHttpException |
Lists all UserProfile models.
public string actionIndex ( $layout = NULL ) | ||
$layout | string|null | |
throws | yii\web\NotFoundHttpException |
---|
Updates an existing UserProfile model.
If update is successful, the browser will be redirected to the 'view' page.
public lispa\amos\admin\models\UserProfile|string actionUpdate ( $id, $render = true, $tabActive = null ) | ||
$id | integer | |
$render | boolean | |
$tabActive | string|null | |
throws | yii\web\NotFoundHttpException |
---|
Displays a single UserProfile model.
public string actionView ( $id ) | ||
$id | integer | |
throws | yii\web\NotFoundHttpException |
---|
protected boolean downloadFile ( $path, $file, $extensions = [] ) | ||
$path | ||
$file | ||
$extensions | array |
Return an array with the values used in boolean fields.
public array getBooleanFieldsValues ( ) |
public array|null getWhiteListRoles ( ) |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
protected yii\web\Response redirectOnCreate ( $model ) | ||
$model |
protected yii\web\Response redirectOnUpdate ( $model, $previousStatus = null ) | ||
$model | ||
$previousStatus | null |
Set a view param used in \lispa\amos\core\forms\CreateNewButtonWidget
protected void setCreateNewBtnParams ( ) |
Used for set lists view params.
public void setListsViewParams ( ) |
Used for set page title and breadcrumbs.
public void setTitleAndBreadcrumbs ( $pageTitle ) | ||
$pageTitle | string |