File tree widget being compatible with the dc general.
| see |
|---|
__construct(array|null $attributes, \ContaoCommunityAlliance\DcGeneral\Contao\Compatibility\DcCompat|null $dataContainer)
arraynullThe custom attributes.
\ContaoCommunityAlliance\DcGeneral\Contao\Compatibility\DcCompatnullThe data container.
generate()
isAllowedDownload(string $extension) : bool
stringThe file extension.
boolrenderFileInfo(\File $file) : string
renderIcon(\FilesModel $model, bool $imagesOnly, bool $downloads) : false | string
boolIf true only images are rendered.
boolIf true file extension has to be in the allowed downloads list.
falsestring
validator(mixed $inputValue) : array | string
mixedThe input value.
arraystring
applySorting(array $icons) : array
arrayThe file icons.
arraygenerateLink(array $values) : string
arrayThe selected files.
stringrenderList(array $values, array $icons, \Model\Collection|null $collection, bool $followSubDirs) : void
arrayThe selected values.
arrayThe generated icons.
boolIf 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