Class humhub\modules\content\controllers\ContentController

Inheritancehumhub\modules\content\controllers\ContentController » humhub\components\Controller » yii\web\Controller
Available since version0.5

ContentController is responsible for basic content objects.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$actionTitlesMap array Page titles humhub\components\Controller
$pageTitle string Title of the rendered page humhub\components\Controller
$prependActionTitles boolean Append page title humhub\components\Controller
$subLayout null|string The name of the sub layout to be applied to this controller's views. humhub\components\Controller

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
actionArchive() Archives an wall entry & corresponding content object. humhub\modules\content\controllers\ContentController
actionDelete() Deletes a content object humhub\modules\content\controllers\ContentController
actionDeleteId() humhub\modules\content\controllers\ContentController
actionNotificationSwitch() humhub\modules\content\controllers\ContentController
actionPin() Pins an wall entry & corresponding content object. humhub\modules\content\controllers\ContentController
actionReload() humhub\modules\content\controllers\ContentController
actionToggleVisibility() Switches the content visibility for the given content. humhub\modules\content\controllers\ContentController
actionUnPin() Unpins an wall entry & corresponding content object. humhub\modules\content\controllers\ContentController
actionUnarchive() UnArchives an wall entry & corresponding content object. humhub\modules\content\controllers\ContentController
actionViewModal() humhub\modules\content\controllers\ContentController
appendPageTitle() Append a page title. humhub\components\Controller
beforeAction() humhub\components\Controller
behaviors() humhub\modules\content\controllers\ContentController
forcePostRequest() Throws HttpException in case the request is not an post request, otherwise returns true. humhub\components\Controller
getAccess() humhub\components\Controller
htmlRedirect() Create Redirect for AJAX Requests which output goes into HTML content. humhub\components\Controller
init() humhub\components\Controller
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
getAccessRules() Returns access rules for the standard access control behavior. 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

actionArchive() public method

Archives an wall entry & corresponding content object.

Returns JSON Output.

public void actionArchive ( )
actionDelete() public method

Deletes a content object

Returns a JSON list of affected wallEntryIds.

public void actionDelete ( )
actionDeleteId() public method

public void actionDeleteId ( )
actionNotificationSwitch() public method

public void actionNotificationSwitch ( )
actionPin() public method

Pins an wall entry & corresponding content object.

Returns JSON Output.

public void actionPin ( )
actionReload() public method

public void actionReload ( $id )
$id
actionToggleVisibility() public method

Switches the content visibility for the given content.

public \yii\web\Response actionToggleVisibility ( $id )
$id \humhub\modules\content\controllers\type

Content id

throws \yii\web\HttpException
actionUnPin() public method

Unpins an wall entry & corresponding content object.

Returns JSON Output.

public void actionUnPin ( )
actionUnarchive() public method

UnArchives an wall entry & corresponding content object.

Returns JSON Output.

public void actionUnarchive ( )
actionViewModal() public method

public void actionViewModal ( $id )
$id
behaviors() public method

public void behaviors ( )