Class humhub\modules\content\widgets\WallEntryControls

Inheritancehumhub\modules\content\widgets\WallEntryControls » humhub\widgets\BaseStack » humhub\components\Widget » yii\base\Widget

This widget is responsible for rendering the context menu for wallentries.

The default context menu can be extended by overwriting the getContextMenu function of the WallEntryWidget.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addWidget() Adds a new widget humhub\widgets\BaseStack
init() Initializes the sidebar widget. humhub\widgets\BaseStack
isAssoc() Checks if the given $array is an associative array or not. humhub\modules\content\widgets\WallEntryControls
process() Process is a wrapper for the run method humhub\components\Widget
removeWidget() Removes a widget from the stack humhub\widgets\BaseStack
run() Runs the Navigation humhub\modules\content\widgets\WallEntryControls
widget() Creates a widget instance and runs it. humhub\components\Widget

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getWallEntryLinkDefinition() Returns the widget definition for the given $menuItem. humhub\modules\content\widgets\WallEntryControls
getWidgets() Returns all widgets by sortorder humhub\widgets\BaseStack

Events

Hide inherited events

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

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_INIT 'init' humhub\widgets\BaseStack
EVENT_RUN 'run' humhub\widgets\BaseStack

Property Details

$object public property
$wallEntryWidget public property

Method Details

getWallEntryLinkDefinition() protected method

Returns the widget definition for the given $menuItem.

The $menuItem can either be given as single array:

['label' => 'mylabel', icon => 'fa-myicon', 'data-action-click' => 'myaction', ...]

or as widget type definition:

[MyWidget::class, [...], [...]]

protected \humhub\modules\content\widgets\type getWallEntryLinkDefinition ( $menuItem )
$menuItem \humhub\modules\content\widgets\type
isAssoc() public method

Checks if the given $array is an associative array or not.

public boolean isAssoc ( $arr )
$arr array
run() public method

Runs the Navigation

public void run ( )