PHP Класс 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.
Наследование: extends Widget, implements uploadable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$blnForAttribute boolean Add a for attribute
$blnSubmitInput boolean Submit user input
$objUploader FileUpload Uploader
$strTemplate string Template

Открытые методы

Метод Описание
__construct ( array $arrAttributes = null ) Initialize the FileUpload object
generate ( ) : string Generate the widget and return it as string

Защищенные методы

Метод Описание
validator ( mixed $varInput ) : mixed Trim values

Описание методов

__construct() публичный Метод

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

generate() публичный Метод

Generate the widget and return it as string
public generate ( ) : string
Результат string

validator() защищенный Метод

Trim values
protected validator ( mixed $varInput ) : mixed
$varInput mixed
Результат mixed

Описание свойств

$blnForAttribute защищенное свойство

Add a for attribute
protected bool $blnForAttribute
Результат boolean

$blnSubmitInput защищенное свойство

Submit user input
protected bool $blnSubmitInput
Результат boolean

$objUploader защищенное свойство

Uploader
protected FileUpload,contao $objUploader
Результат FileUpload

$strTemplate защищенное свойство

Template
protected string $strTemplate
Результат string