PHP 클래스 Contao\DC_Folder

상속: extends DataContainer, implements listable, implements editable
파일 보기 프로젝트 열기: contao/core-bundle

보호된 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
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

메소드 상세

__construct() 공개 메소드

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

__get() 공개 메소드

Return an object property
public __get ( string $strKey ) : mixed
$strKey string
리턴 mixed

__set() 공개 메소드

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

ajaxTreeView() 공개 메소드

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

copy() 공개 메소드

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

copyAll() 공개 메소드

Move all selected files and folders
public copyAll ( )

create() 공개 메소드

Create a new folder
public create ( )

cut() 공개 메소드

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

cutAll() 공개 메소드

Move all selected files and folders
public cutAll ( )

delete() 공개 메소드

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

deleteAll() 공개 메소드

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

edit() 공개 메소드

Auto-generate a form to rename a file or folder
public edit ( ) : string
리턴 string

editAll() 공개 메소드

Auto-generate a form to edit all records that are currently shown
public editAll ( ) : string
리턴 string

generateTree() 보호된 메소드

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
리턴 string

getMD5Folders() 보호된 메소드

Return an array of encrypted folder names
protected getMD5Folders ( string $strPath ) : array
$strPath string
리턴 array

getPalette() 공개 메소드

Return the name of the current palette
public getPalette ( ) : string
리턴 string

isMounted() 보호된 메소드

Return true if the current folder is mounted
protected isMounted ( string $strFolder ) : boolean
$strFolder string
리턴 boolean

isProtectedPath() 보호된 메소드

Check if a path is protected (see #287)
protected isProtectedPath ( string $path ) : boolean
$path string
리턴 boolean

isValid() 보호된 메소드

Check a file operation
protected isValid ( string $strFile ) : boolean
$strFile string
리턴 boolean

move() 공개 메소드

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

panel() 보호된 메소드

Build the sort panel and return it as string
protected panel ( ) : string
리턴 string

protect() 공개 메소드

Protect a folder
public protect ( )

save() 보호된 메소드

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

searchMenu() 보호된 메소드

Return a search form that allows to search results using regular expressions
protected searchMenu ( ) : string
리턴 string

show() 공개 메소드

Automatically switch to showAll
public show ( ) : string
리턴 string

showAll() 공개 메소드

List all files and folders of the file system
public showAll ( ) : string
리턴 string

source() 공개 메소드

Load the source editor
public source ( ) : string
리턴 string

sync() 공개 메소드

Synchronize the file system with the database
public sync ( ) : string
리턴 string

undo() 공개 메소드

Automatically switch to showAll
public undo ( ) : string
리턴 string

프로퍼티 상세

$arrCounts 보호되어 있는 프로퍼티

Counts
protected array $arrCounts
리턴 array

$arrFilemounts 보호되어 있는 프로퍼티

Current filemounts
protected array $arrFilemounts
리턴 array

$arrMessages 보호되어 있는 프로퍼티

Messages
protected array $arrMessages
리턴 array

$arrValidFileTypes 보호되어 있는 프로퍼티

Valid file types
protected array $arrValidFileTypes
리턴 array

$blnCreateNewVersion 보호되어 있는 프로퍼티

True if a new version has to be created
protected bool $blnCreateNewVersion
리턴 boolean

$blnIsDbAssisted 보호되어 있는 프로퍼티

Database assisted
protected bool $blnIsDbAssisted
리턴 boolean

$strExtension 보호되어 있는 프로퍼티

Current file extension
protected string $strExtension
리턴 string

$strPath 보호되어 있는 프로퍼티

Current path
protected string $strPath
리턴 string