Class humhub\modules\file\widgets\ShowFiles

Inheritancehumhub\modules\file\widgets\ShowFiles » yii\base\Widget
Available since version0.5

This widget is used include the files functionality to a wall entry.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$active boolean If set to false this widget won't be rendered humhub\modules\file\widgets\ShowFiles
$object humhub\components\ActiveRecord Object to show files from humhub\modules\file\widgets\ShowFiles
$preview boolean If set to false this widget won't render file previews as images/videos/audio humhub\modules\file\widgets\ShowFiles

Public Methods

Hide inherited methods

MethodDescriptionDefined By
run() Executes the widget. humhub\modules\file\widgets\ShowFiles

Property Details

$active public property

If set to false this widget won't be rendered

public boolean $active true
$object public property

Object to show files from

$preview public property

If set to false this widget won't render file previews as images/videos/audio

public boolean $preview true

Method Details

run() public method

Executes the widget.

public void run ( )