Class humhub\modules\notification\widgets\Overview

Inheritancehumhub\modules\notification\widgets\Overview » humhub\widgets\JsWidget » humhub\components\Widget » yii\base\Widget
Available since version1.1

Notificaiton overview widget.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getAttributes() humhub\modules\notification\widgets\Overview
getData() humhub\modules\notification\widgets\Overview
getId() Returns the html id of this widget, if no id is set this function will generate an id if $autoGenerate is set to true (default). humhub\widgets\JsWidget
init() humhub\modules\notification\widgets\Overview
process() Process is a wrapper for the run method humhub\components\Widget
run() Default implementation of JsWidget. humhub\modules\notification\widgets\Overview
setDefaultOptions() Sets some default data options required by all widgets as the widget implementation and the widget evetns and initialization trigger. humhub\widgets\JsWidget
widget() Creates a widget instance and runs it. humhub\components\Widget

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getOptions() Assembles all widget attributes and data settings of this widget. humhub\widgets\JsWidget

Events

Hide inherited events

EventTypeDescriptionDefined By
EVENT_CREATE humhub\libs\WidgetCreateEvent An event raised before creating a widget. humhub\components\Widget

Property Details

$id public property
public $id 'notification_widget'

Method Details

getAttributes() public method

public void getAttributes ( )
getData() public method

public void getData ( )
init() public method

public void init ( )
run() public method

Default implementation of JsWidget.

This will render a widget html element specified by $container and $content and the given $options/$event attributes. This function should be overwritten for widgets with a more complex rendering.

public string run ( )