Class humhub\modules\space\widgets\Chooser

Inheritancehumhub\modules\space\widgets\Chooser » humhub\components\Widget » yii\base\Widget

Class Chooser

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$render boolean If set to false this widget won't be rendered humhub\components\Widget

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getSpaceResult() humhub\modules\space\widgets\Chooser
process() Process is a wrapper for the run method humhub\components\Widget
run() Displays / Run the Widgets humhub\modules\space\widgets\Chooser
widget() Creates a widget instance and runs it. humhub\components\Widget


Hide inherited events

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

Method Details

canCreateSpace() protected method

protected void canCreateSpace ( )
getCurrentSpace() protected method

protected void getCurrentSpace ( )
getFollowSpaces() protected method

protected void getFollowSpaces ( )
getMembershipQuery() protected method
Deprecated since version 1.2

Returns the membership query

protected \humhub\modules\space\widgets\type getMembershipQuery ( )
getMemberships() protected method

protected void getMemberships ( )
getSpaceResult() public static method

public static void getSpaceResult ( $space, $withChooserItem true, $options = [] )
run() public method

Displays / Run the Widgets

public void run ( )