Class humhub\modules\file\widgets\FileDownload

Inheritancehumhub\modules\file\widgets\FileDownload » humhub\widgets\Button » humhub\widgets\BootstrapComponent » humhub\components\Widget » yii\base\Widget

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__toString() humhub\widgets\BootstrapComponent
action() Adds a data-action-click handler to the button. humhub\widgets\Button
asColor() humhub\widgets\BootstrapComponent
asLink() humhub\widgets\Button
asString() humhub\widgets\BootstrapComponent
back() humhub\widgets\Button
color() humhub\widgets\BootstrapComponent
confirm() Adds a confirmation behaviour to the button. humhub\widgets\Button
cssClass() humhub\widgets\BootstrapComponent
danger() humhub\widgets\BootstrapComponent
defaultType() humhub\widgets\BootstrapComponent
file() humhub\modules\file\widgets\FileDownload
getComponentBaseClass() humhub\widgets\Button
getFileDataAttributes() humhub\modules\file\widgets\FileDownload
getFileSizeString() humhub\modules\file\widgets\FileDownload
getHref() humhub\widgets\Button
getLayoutViewParams() Returns an array of view parameter used if \humhub\components\layout is set. humhub\components\Widget
getTypedClass() humhub\widgets\Button
getUrl() humhub\modules\file\widgets\FileDownload
getWidgetOptions() humhub\widgets\Button
icon() humhub\widgets\BootstrapComponent
id() humhub\widgets\BootstrapComponent
info() humhub\widgets\BootstrapComponent
instance() humhub\widgets\BootstrapComponent
isPjaxEnabled() humhub\widgets\Button
left() humhub\widgets\BootstrapComponent
lg() humhub\widgets\BootstrapComponent
link() humhub\widgets\Button
loader() humhub\widgets\Button
none() humhub\widgets\BootstrapComponent
onAction() Adds a data-action-* handler to the button. humhub\widgets\Button
options() humhub\widgets\BootstrapComponent
pjax() If set to false the [data-pjax-prevent] flag is attached to the link. humhub\widgets\Button
primary() humhub\widgets\BootstrapComponent
process() Process is a wrapper for the run method humhub\components\Widget
renderComponent() humhub\widgets\Button
right() humhub\widgets\BootstrapComponent
run() humhub\widgets\BootstrapComponent
save() humhub\widgets\Button
setText() humhub\widgets\BootstrapComponent
setType() humhub\widgets\BootstrapComponent
sm() humhub\widgets\BootstrapComponent
style() humhub\widgets\BootstrapComponent
submit() humhub\widgets\Button
success() humhub\widgets\BootstrapComponent
textColor() humhub\widgets\BootstrapComponent
title() Adds an html title attribute humhub\widgets\BootstrapComponent
tooltip() Adds an title + tooltip behaviour class humhub\widgets\BootstrapComponent
userPickerSelfSelect() humhub\widgets\Button
visible() humhub\widgets\BootstrapComponent
warning() humhub\widgets\BootstrapComponent
widget() Creates a widget instance and runs it. humhub\components\Widget
xs() humhub\widgets\BootstrapComponent

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
TYPE_DANGER 'danger' humhub\widgets\BootstrapComponent
TYPE_DEFAULT 'default' humhub\widgets\BootstrapComponent
TYPE_INFO 'info' humhub\widgets\BootstrapComponent
TYPE_NONE 'none' humhub\widgets\BootstrapComponent
TYPE_PRIMARY 'primary' humhub\widgets\BootstrapComponent
TYPE_SUCCESS 'success' humhub\widgets\BootstrapComponent
TYPE_WARNING 'warning' humhub\widgets\BootstrapComponent

Method Details

file() public method

public void file ( humhub\modules\file\models\File $file, $withIcon true, $showSize true, $download false, $scheme false )
$file
$withIcon
$showSize
$download
$scheme
getFileDataAttributes() public static method

public static void getFileDataAttributes ( humhub\modules\file\models\File $file )
$file
getFileSizeString() public static method

public static void getFileSizeString ( humhub\modules\file\models\File $file )
$file
getUrl() public static method

public static void getUrl ( humhub\modules\file\models\File $file, $download, $scheme )
$file
$download
$scheme