PHP Класс Contao\FileSelector

Provide methods to handle input field "file tree".
Наследование: extends Widget
Показать файл Открыть проект

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

Свойство Тип Описание
$arrNodes array Path nodes
$arrValidFileTypes array Valid file types
$blnSubmitInput boolean Submit user input
$strTemplate string Template

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

Метод Описание
__construct ( array $arrAttributes = null ) Load the database object
generate ( ) : string Generate the widget and return it as string
generateAjax ( integer $strFolder, string $strField, integer $level, boolean $mount = false ) : string Generate a particular subpart of the file tree and return it as HTML string

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

Метод Описание
convertValuesToPaths ( ) Translate the file IDs to file paths
isProtectedPath ( string $path ) : boolean Check if a path is protected (see #287)
renderFiletree ( string $path, integer $intMargin, boolean $mount = false, boolean $blnProtected = true, array $arrFound = [] ) : string Recursively render the filetree

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

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

Load the database object
public __construct ( array $arrAttributes = null )
$arrAttributes array

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

Translate the file IDs to file paths
protected convertValuesToPaths ( )

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

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

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

Generate a particular subpart of the file tree and return it as HTML string
public generateAjax ( integer $strFolder, string $strField, integer $level, boolean $mount = false ) : string
$strFolder integer
$strField string
$level integer
$mount boolean
Результат string

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

Check if a path is protected (see #287)
protected isProtectedPath ( string $path ) : boolean
$path string
Результат boolean

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

Recursively render the filetree
protected renderFiletree ( string $path, integer $intMargin, boolean $mount = false, boolean $blnProtected = true, array $arrFound = [] ) : string
$path string
$intMargin integer
$mount boolean
$blnProtected boolean
$arrFound array
Результат string

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

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

Path nodes
protected array $arrNodes
Результат array

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

Valid file types
protected array $arrValidFileTypes
Результат array

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

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

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

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