Class humhub\modules\space\modules\manage\controllers\ImageController

Inheritancehumhub\modules\space\modules\manage\controllers\ImageController » humhub\modules\space\modules\manage\components\Controller » humhub\modules\content\components\ContentContainerController » humhub\components\Controller » yii\web\Controller

ImageControllers handles space profile and banner image

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
actionBannerUpload() Handle the banner image upload humhub\modules\space\modules\manage\controllers\ImageController
actionCrop() Crops the space image humhub\modules\space\modules\manage\controllers\ImageController
actionCropBanner() Crops the banner image humhub\modules\space\modules\manage\controllers\ImageController
actionDelete() Deletes the profile image or profile banner humhub\modules\space\modules\manage\controllers\ImageController
actionUpload() Handle the profile image upload humhub\modules\space\modules\manage\controllers\ImageController
appendPageTitle() Append a page title. humhub\components\Controller
beforeAction() humhub\modules\content\components\ContentContainerController
behaviors() humhub\components\Controller
forcePostRequest() Throws HttpException in case the request is not an post request, otherwise returns true. humhub\components\Controller
getAccess() humhub\modules\content\components\ContentContainerController
htmlRedirect() Create Redirect for AJAX Requests which output goes into HTML content. humhub\components\Controller
init() humhub\modules\content\components\ContentContainerController
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

Events

Hide inherited events

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

Method Details

actionBannerUpload() public method

Handle the banner image upload

public void actionBannerUpload ( )
actionCrop() public method

Crops the space image

public void actionCrop ( )
actionCropBanner() public method

Crops the banner image

public void actionCropBanner ( )
actionDelete() public method

Deletes the profile image or profile banner

public void actionDelete ( )
actionUpload() public method

Handle the profile image upload

public void actionUpload ( )