Class humhub\modules\activity\widgets\Activity

Inheritancehumhub\modules\activity\widgets\Activity » humhub\modules\content\widgets\WallEntry » humhub\components\Widget » yii\base\Widget
Available since version0.5

ActivityWidget shows an activity.

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$themePath humhub\modules\activity\widgets\Activity

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getContextMenu() Returns an array of context menu items either in form of a single array: humhub\modules\content\widgets\WallEntry
getEditUrl() Returns the edit url to edit the content (if supported) humhub\modules\content\widgets\WallEntry
getWallEntryViewParams() Returns the view paramters for the wall entry layout humhub\modules\content\widgets\WallEntry
process() Process is a wrapper for the run method humhub\components\Widget
renderWallEntry() Renders the wall entry output humhub\modules\content\widgets\WallEntry
run() Runs the Widget humhub\modules\activity\widgets\Activity
widget() Creates a widget instance and runs it. humhub\modules\content\widgets\WallEntry

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
addControl() humhub\modules\content\widgets\WallEntry

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
EDIT_MODE_INLINE 'inline' Edit form is loaded to the wallentry itself. humhub\modules\content\widgets\WallEntry
EDIT_MODE_MODAL 'modal' Edit form is loaded into a modal. humhub\modules\content\widgets\WallEntry
EDIT_MODE_NEW_WINDOW 'new_window' Opens the edit page in a new window. humhub\modules\content\widgets\WallEntry

Property Details

$activity public property

Is the current activity object.

$themePath protected property
protected $themePath 'modules/activity'
$wallEntryId public property

If the Widget is linked to a wall entry id

public integer $wallEntryId 0

Method Details

run() public method

Runs the Widget

public void run ( )