Class humhub\modules\file\handler\DownloadFileHandler

Inheritancehumhub\modules\file\handler\DownloadFileHandler » humhub\modules\file\handler\BaseFileHandler » yii\base\Component
Available since version1.2

DownloadFileHandler provides the download link for a file

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
POSITION_STANDARD '5' humhub\modules\file\handler\BaseFileHandler
POSITION_TOP '1' Output list position humhub\modules\file\handler\BaseFileHandler

Property Details

$position public property

The position of the file handler

public integer $position self::POSITION_TOP

Method Details

getLinkAttributes() public method

The file handler link

public array getLinkAttributes ( )
return array

The HTML attributes of the button.

getUrl() public static method

public static void getUrl ( $file, $download 0, $scheme false )
$file
$download
$scheme