Class humhub\widgets\JPlayerPlaylistWidget

Inheritancehumhub\widgets\JPlayerPlaylistWidget » humhub\widgets\JsWidget » humhub\components\Widget » yii\base\Widget

Description of JPlayerWidget

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getAttributes() humhub\widgets\JPlayerPlaylistWidget
getContainerId() humhub\widgets\JPlayerPlaylistWidget
getData() humhub\widgets\JPlayerPlaylistWidget
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
getJsonPlaylist() humhub\widgets\JPlayerPlaylistWidget
process() Process is a wrapper for the run method humhub\components\Widget
run() Default implementation of JsWidget. humhub\widgets\JPlayerPlaylistWidget
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


Hide inherited events

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

Property Details

$jsWidget public property
public string $jsWidget "media.Jplayer"
$playlist public property

Method Details

getAttributes() public method

public void getAttributes ( )
getContainerId() public method

public void getContainerId ( )
getData() public method

public void getData ( )
getJsonPlaylist() public method

public void getJsonPlaylist ( )
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 ( )