Class humhub\modules\user\controllers\AccountController

Inheritancehumhub\modules\user\controllers\AccountController » humhub\modules\user\components\BaseAccountController » humhub\components\Controller » yii\web\Controller
Available since version0.5

AccountController provides all standard actions for the current logged in user account.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$access string Defines the ControllerAccess class for this controller responsible for managing access rules humhub\components\Controller

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionBannerImageUpload() Handle the banner image upload humhub\modules\user\controllers\AccountController
actionChangeEmail() Change Current E-mail humhub\modules\user\controllers\AccountController
actionChangeEmailValidate() After the user validated his email humhub\modules\user\controllers\AccountController
actionChangePassword() Change users current password humhub\modules\user\controllers\AccountController
actionChangeUsername() Change Current Username humhub\modules\user\controllers\AccountController
actionConnectedAccounts() humhub\modules\user\controllers\AccountController
actionCropBannerImage() Crops the banner image of the user humhub\modules\user\controllers\AccountController
actionCropProfileImage() Crops the profile image of the user humhub\modules\user\controllers\AccountController
actionDelete() Delete Action humhub\modules\user\controllers\AccountController
actionDeleteProfileImage() Deletes the profile image or profile banner humhub\modules\user\controllers\AccountController
actionDisableModule() humhub\modules\user\controllers\AccountController
actionEdit() Edit Users Profile humhub\modules\user\controllers\AccountController
actionEditModules() Allows the user to enable user specifc modules humhub\modules\user\controllers\AccountController
actionEditSettings() Change Account humhub\modules\user\controllers\AccountController
actionEnableModule() humhub\modules\user\controllers\AccountController
actionIndex() Redirect to current users profile humhub\modules\user\controllers\AccountController
actionProfileImageUpload() Handle the profile image upload humhub\modules\user\controllers\AccountController
actionSecurity() Change Account humhub\modules\user\controllers\AccountController
appendPageTitle() Append a page title. humhub\components\Controller
beforeAction() humhub\components\Controller
behaviors() humhub\components\Controller
forcePostRequest() Throws HttpException in case the request is not an post request, otherwise returns true. humhub\components\Controller
getAccess() humhub\components\Controller
getAccessRules() Returns access rules for the standard access control behavior. humhub\modules\user\components\BaseAccountController
getUser() Returns the current user of this account humhub\modules\user\controllers\AccountController
htmlRedirect() Create Redirect for AJAX Requests which output goes into HTML content. humhub\components\Controller
init() humhub\modules\user\controllers\AccountController
prependPageTitle() Prepend a page title. humhub\components\Controller
redirect() humhub\components\Controller
renderAjaxContent() humhub\components\Controller
renderContent() Renders a static string by applying the layouts (sublayout + layout. humhub\components\Controller
renderModalClose() Closes a modal humhub\components\Controller
setActionTitles() Set a map that indicates what page title should be shown for the currently active action. humhub\components\Controller
setJsViewStatus() Sets some ui state as current controller/module and active topmenu. humhub\components\Controller
setPageTitle() Set the page title. humhub\components\Controller

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
forbidden() humhub\components\Controller

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_INIT \yii\base\Event An event raised on init a controller. humhub\components\Controller

Method Details

actionBannerImageUpload() public method
Deprecated since version 1.2

Handle the banner image upload

public void actionBannerImageUpload ( )
actionChangeEmail() public method

Change Current E-mail

public void actionChangeEmail ( )
actionChangeEmailValidate() public method

After the user validated his email

public void actionChangeEmailValidate ( )
actionChangePassword() public method

Change users current password

public void actionChangePassword ( )
actionChangeUsername() public method

Change Current Username

public void actionChangeUsername ( )
actionConnectedAccounts() public method

public void actionConnectedAccounts ( )
actionCropBannerImage() public method
Deprecated since version 1.2

Crops the banner image of the user

public void actionCropBannerImage ( )
actionCropProfileImage() public method
Deprecated since version 1.2

Crops the profile image of the user

public void actionCropProfileImage ( )
actionDelete() public method

Delete Action

public void actionDelete ( )
actionDeleteProfileImage() public method
Deprecated since version 1.2

Deletes the profile image or profile banner

public void actionDeleteProfileImage ( )
actionDisableModule() public method

public array|humhub\modules\user\controllers\AccountController|\yii\console\Response|\yii\web\Response actionDisableModule ( )
throws \yii\web\HttpException
throws Throwable
actionEdit() public method

Edit Users Profile

public void actionEdit ( )
throws Throwable
actionEditModules() public method

Allows the user to enable user specifc modules

public void actionEditModules ( )
actionEditSettings() public method

Change Account

public void actionEditSettings ( )
actionEnableModule() public method

public array|humhub\modules\user\controllers\AccountController|\yii\console\Response|\yii\web\Response actionEnableModule ( )
throws \yii\web\HttpException
throws Throwable
actionIndex() public method

Redirect to current users profile

public void actionIndex ( )
throws Throwable
actionProfileImageUpload() public method
Deprecated since version 1.2

Handle the profile image upload

public void actionProfileImageUpload ( )
actionSecurity() public method

Change Account

public void actionSecurity ( )
throws Exception
getUser() public method

Returns the current user of this account

An administration can also pass a user id via GET parameter to change users accounts settings.

public humhub\modules\user\models\User getUser ( )
return humhub\modules\user\models\User

The user

throws \yii\web\HttpException
throws Throwable
init() public method

public void init ( )