PHP Class Contao\Upload

Provide methods to use the FileUpload class in a back end widget. The widget will only upload the files to the server. Use a submit_callback to process the files or use the class as base for your own upload widget.
Inheritance: extends Widget, implements uploadable
Mostrar archivo Open project: contao/core-bundle

Protected Properties

Property Type Description
$blnForAttribute boolean Add a for attribute
$blnSubmitInput boolean Submit user input
$objUploader FileUpload Uploader
$strTemplate string Template

Public Methods

Method Description
__construct ( array $arrAttributes = null ) Initialize the FileUpload object
generate ( ) : string Generate the widget and return it as string

Protected Methods

Method Description
validator ( mixed $varInput ) : mixed Trim values

Method Details

__construct() public method

Initialize the FileUpload object
public __construct ( array $arrAttributes = null )
$arrAttributes array

generate() public method

Generate the widget and return it as string
public generate ( ) : string
return string

validator() protected method

Trim values
protected validator ( mixed $varInput ) : mixed
$varInput mixed
return mixed

Property Details

$blnForAttribute protected_oe property

Add a for attribute
protected bool $blnForAttribute
return boolean

$blnSubmitInput protected_oe property

Submit user input
protected bool $blnSubmitInput
return boolean

$objUploader protected_oe property

Uploader
protected FileUpload,contao $objUploader
return FileUpload

$strTemplate protected_oe property

Template
protected string $strTemplate
return string