Class humhub\modules\notification\controllers\ListController

Inheritancehumhub\modules\notification\controllers\ListController » humhub\components\Controller » yii\web\Controller
Available since version0.5

ListController

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
actionGetUpdateJson() Returns new notifications humhub\modules\notification\controllers\ListController
actionIndex() Returns a List of all notifications for an user humhub\modules\notification\controllers\ListController
actionMarkAsSeen() Marks all notifications as seen humhub\modules\notification\controllers\ListController
appendPageTitle() Append a page title. humhub\components\Controller
beforeAction() humhub\components\Controller
behaviors() humhub\modules\notification\controllers\ListController
forcePostRequest() Throws HttpException in case the request is not an post request, otherwise returns true. humhub\components\Controller
getAccess() humhub\components\Controller
getUpdates() Returns a JSON which contains - Number of new / unread notification - Notification Output for new HTML5 Notifications humhub\modules\notification\controllers\ListController
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

actionGetUpdateJson() public method
Deprecated since version 1.2

Returns new notifications

public void actionGetUpdateJson ( )
actionIndex() public method

Returns a List of all notifications for an user

public void actionIndex ( )
throws Throwable
actionMarkAsSeen() public method

Marks all notifications as seen

public void actionMarkAsSeen ( )
throws \yii\web\HttpException
behaviors() public method

public void behaviors ( )
getUpdates() public static method

Returns a JSON which contains - Number of new / unread notification - Notification Output for new HTML5 Notifications

public static string getUpdates ( $includeContent true )
$includeContent boolean

Weather or not to include the actual notification content

return string

JSON String

throws Throwable
throws \yii\db\StaleObjectException