PHP Class Contao\DC_Folder

Inheritance: extends DataContainer, implements listable, implements editable
Afficher le fichier Open project: contao/core-bundle

Protected Properties

Свойство Type Description
$arrCounts array Counts
$arrFilemounts array Current filemounts
$arrMessages array Messages
$arrValidFileTypes array Valid file types
$blnCreateNewVersion boolean True if a new version has to be created
$blnIsDbAssisted boolean Database assisted
$strExtension string Current file extension
$strPath string Current path

Méthodes publiques

Méthode Description
__construct ( string $strTable ) Initialize the object
__get ( string $strKey ) : mixed Return an object property
__set ( string $strKey, mixed $varValue ) Set an object property
ajaxTreeView ( string $strFolder, integer $level ) : string Generate a particular subpart of the tree and return it as HTML string
copy ( string $source = null, string $destination = null ) Recursively duplicate files and folders
copyAll ( ) Move all selected files and folders
create ( ) Create a new folder
cut ( string $source = null ) Move an existing file or folder
cutAll ( ) Move all selected files and folders
delete ( string $source = null ) Recursively delete files and folders
deleteAll ( ) Delete all files and folders that are currently shown
edit ( ) : string Auto-generate a form to rename a file or folder
editAll ( ) : string Auto-generate a form to edit all records that are currently shown
getPalette ( ) : string Return the name of the current palette
move ( boolean $blnIsAjax = false ) : string Move one or more local files to the server
protect ( ) Protect a folder
show ( ) : string Automatically switch to showAll
showAll ( ) : string List all files and folders of the file system
source ( ) : string Load the source editor
sync ( ) : string Synchronize the file system with the database
undo ( ) : string Automatically switch to showAll

Méthodes protégées

Méthode Description
generateTree ( string $path, integer $intMargin, boolean $mount = false, boolean $blnProtected = true, array $arrClipboard = null, array $arrFound = [] ) : string Render the file tree and return it as HTML string
getMD5Folders ( string $strPath ) : array Return an array of encrypted folder names
isMounted ( string $strFolder ) : boolean Return true if the current folder is mounted
isProtectedPath ( string $path ) : boolean Check if a path is protected (see #287)
isValid ( string $strFile ) : boolean Check a file operation
panel ( ) : string Build the sort panel and return it as string
save ( mixed $varValue ) Save the current value
searchMenu ( ) : string Return a search form that allows to search results using regular expressions

Method Details

__construct() public méthode

Initialize the object
public __construct ( string $strTable )
$strTable string

__get() public méthode

Return an object property
public __get ( string $strKey ) : mixed
$strKey string
Résultat mixed

__set() public méthode

Set an object property
public __set ( string $strKey, mixed $varValue )
$strKey string
$varValue mixed

ajaxTreeView() public méthode

Generate a particular subpart of the tree and return it as HTML string
public ajaxTreeView ( string $strFolder, integer $level ) : string
$strFolder string
$level integer
Résultat string

copy() public méthode

Recursively duplicate files and folders
public copy ( string $source = null, string $destination = null )
$source string
$destination string

copyAll() public méthode

Move all selected files and folders
public copyAll ( )

create() public méthode

Create a new folder
public create ( )

cut() public méthode

Move an existing file or folder
public cut ( string $source = null )
$source string

cutAll() public méthode

Move all selected files and folders
public cutAll ( )

delete() public méthode

Recursively delete files and folders
public delete ( string $source = null )
$source string

deleteAll() public méthode

Delete all files and folders that are currently shown
public deleteAll ( )

edit() public méthode

Auto-generate a form to rename a file or folder
public edit ( ) : string
Résultat string

editAll() public méthode

Auto-generate a form to edit all records that are currently shown
public editAll ( ) : string
Résultat string

generateTree() protected méthode

Render the file tree and return it as HTML string
protected generateTree ( string $path, integer $intMargin, boolean $mount = false, boolean $blnProtected = true, array $arrClipboard = null, array $arrFound = [] ) : string
$path string
$intMargin integer
$mount boolean
$blnProtected boolean
$arrClipboard array
$arrFound array
Résultat string

getMD5Folders() protected méthode

Return an array of encrypted folder names
protected getMD5Folders ( string $strPath ) : array
$strPath string
Résultat array

getPalette() public méthode

Return the name of the current palette
public getPalette ( ) : string
Résultat string

isMounted() protected méthode

Return true if the current folder is mounted
protected isMounted ( string $strFolder ) : boolean
$strFolder string
Résultat boolean

isProtectedPath() protected méthode

Check if a path is protected (see #287)
protected isProtectedPath ( string $path ) : boolean
$path string
Résultat boolean

isValid() protected méthode

Check a file operation
protected isValid ( string $strFile ) : boolean
$strFile string
Résultat boolean

move() public méthode

Move one or more local files to the server
public move ( boolean $blnIsAjax = false ) : string
$blnIsAjax boolean
Résultat string

panel() protected méthode

Build the sort panel and return it as string
protected panel ( ) : string
Résultat string

protect() public méthode

Protect a folder
public protect ( )

save() protected méthode

Save the current value
protected save ( mixed $varValue )
$varValue mixed

searchMenu() protected méthode

Return a search form that allows to search results using regular expressions
protected searchMenu ( ) : string
Résultat string

show() public méthode

Automatically switch to showAll
public show ( ) : string
Résultat string

showAll() public méthode

List all files and folders of the file system
public showAll ( ) : string
Résultat string

source() public méthode

Load the source editor
public source ( ) : string
Résultat string

sync() public méthode

Synchronize the file system with the database
public sync ( ) : string
Résultat string

undo() public méthode

Automatically switch to showAll
public undo ( ) : string
Résultat string

Property Details

$arrCounts protected_oe property

Counts
protected array $arrCounts
Résultat array

$arrFilemounts protected_oe property

Current filemounts
protected array $arrFilemounts
Résultat array

$arrMessages protected_oe property

Messages
protected array $arrMessages
Résultat array

$arrValidFileTypes protected_oe property

Valid file types
protected array $arrValidFileTypes
Résultat array

$blnCreateNewVersion protected_oe property

True if a new version has to be created
protected bool $blnCreateNewVersion
Résultat boolean

$blnIsDbAssisted protected_oe property

Database assisted
protected bool $blnIsDbAssisted
Résultat boolean

$strExtension protected_oe property

Current file extension
protected string $strExtension
Résultat string

$strPath protected_oe property

Current path
protected string $strPath
Résultat string