File tree widget being compatible with the dc general.
see |
---|
__construct(array|null $attributes, \ContaoCommunityAlliance\DcGeneral\Contao\Compatibility\DcCompat|null $dataContainer)
array
null
The custom attributes.
\ContaoCommunityAlliance\DcGeneral\Contao\Compatibility\DcCompat
null
The data container.
generate()
isAllowedDownload(string $extension) : bool
string
The file extension.
bool
renderFileInfo(\File $file) : string
renderIcon(\FilesModel $model, bool $imagesOnly, bool $downloads) : false | string
bool
If true only images are rendered.
bool
If true file extension has to be in the allowed downloads list.
false
string
validator(mixed $inputValue) : array | string
mixed
The input value.
array
string
applySorting(array $icons) : array
array
The file icons.
array
generateLink(array $values) : string
array
The selected files.
string
renderList(array $values, array $icons, \Model\Collection|null $collection, bool $followSubDirs) : void
array
The selected values.
array
The generated icons.
bool
If true subfolders get rendered.
setUp() : void
SuppressWarnings | (PHPMD.Superglobals) |
---|---|
SuppressWarnings | (PHPMD.CamelCaseVariableName) |
: string
magic | |
---|---|
property | strField The field name. |
: bool
magic | |
---|---|
property | mandatory If true the field is required. |
: bool
magic | |
---|---|
property | multiple If true multiple values are allowed. |
: bool
magic | |
---|---|
property | isGallery If true the a image gallery is rendered. |
: bool
magic | |
---|---|
property | isDownloads If true only allowed download files are listed. |
$orderField : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Widget\string.
$orderFieldValue : \ContaoCommunityAlliance\DcGeneral\Contao\View\Contao2BackendView\Widget\array.
$orderId : string
$subTemplate : string