![]() |
TYPO3
7.6
|
Public Member Functions | |
injectResourceFactory (ResourceFactory $resourceFactory) | |
__construct (FileListController $fileListController) | |
start (Folder $folderObject, $pointer, $sort, $sortRev, $clipBoard=false, $bigControlPanel=false) | |
generateList () | |
getButtonsAndOtherMarkers (Folder $folderObject) | |
linkClipboardHeaderIcon ($string, $_, $cmd, $warning= '') | |
getFolderInfo () | |
formatDirList (array $folders) | |
linkWrapDir ($title, Folder $folderObject) | |
linkWrapFile ($code, File $fileObject) | |
listURL ($altId= '') | |
formatFileList (array $files) | |
isImage ($ext) | |
isMediaFile ($ext) | |
linkWrapSort ($code, $folderIdentifier, $col) | |
makeClip ($fileOrFolderObject) | |
makeEdit ($fileOrFolderObject) | |
makeRef ($fileOrFolderObject) | |
![]() | |
__construct () | |
addElement ($h, $icon, $data, $rowParams= '', $_= '', $_2= '', $colType= 'td') | |
writeTop () | |
fwd_rwd_nav ($table= '') | |
fwd_rwd_HTML ($type, $pointer, $table= '') | |
listURL ($altId= '') | |
CBfunctions () | |
initializeLanguages () | |
languageFlag ($sys_language_uid, $addAsAdditionalText=true) | |
Public Attributes | |
$iLimit = 40 | |
$thumbs = false | |
$spaceIcon | |
$fixedL = 30 | |
$clickMenus = 1 | |
$sort = '' | |
$sortRev = 1 | |
$firstElementNumber = 0 | |
$clipBoard = 0 | |
$bigControlPanel = 0 | |
$JScode = '' | |
$HTMLcode = '' | |
$totalbytes = 0 | |
$dirs = array() | |
$files = array() | |
$path = '' | |
$eCounter = 0 | |
$totalItems = '' | |
$CBnames = array() | |
$clipObj | |
![]() | |
$iLimit = 10 | |
$leftMargin = 0 | |
$showIcon = 1 | |
$no_noWrap = 0 | |
$oddColumnsCssClass = '' | |
$fieldArray = array() | |
$addElement_tdParams = array() | |
$addElement_tdCssClass = array() | |
$fixedL = 30 | |
$thisScript = '' | |
$setLMargin = 1 | |
$counter = 0 | |
$totalItems = '' | |
$firstElementNumber = 0 | |
$eCounter = 0 | |
$HTMLcode = '' | |
$pageOverlays = array() | |
$languageIconTitles = array() | |
$translateTools | |
Protected Member Functions | |
getLinkToParentFolder (Folder $currentFolder) | |
getTranslationsForMetaData ($metaDataRecord) | |
getDatabaseConnection () | |
getLanguageService () | |
getBackendUser () | |
![]() | |
determineScriptUrl () | |
getThisScript () | |
getTranslateTools () | |
generateReferenceToolTip ($references, $launchViewParameter= '') | |
getLanguageService () | |
getDatabaseConnection () | |
Protected Attributes | |
$folderObject | |
$resourceFactory | |
$iconFactory | |
$fileListController | |
![]() | |
$id = 0 | |
$iconFactory | |
Class for rendering of File>Filelist
Definition at line 40 of file FileList.php.
__construct | ( | FileListController | $fileListController | ) |
Construct
FileListController | $fileListController |
Definition at line 191 of file FileList.php.
References FileList\$fileListController, and GeneralUtility\makeInstance().
formatDirList | ( | array | $folders | ) |
This returns tablerows for the directories in the array $items['sorting'].
Folder[] | $folders Folders of |
Definition at line 515 of file FileList.php.
formatFileList | ( | array | $files | ) |
This returns tablerows for the files in the array $items['sorting'].
File[] | $files File items |
Definition at line 664 of file FileList.php.
generateList | ( | ) |
Reading files and directories, counting elements and generating the list in ->HTMLcode
Definition at line 233 of file FileList.php.
|
protected |
Returns the current BE user.
Definition at line 1072 of file FileList.php.
References $GLOBALS.
Referenced by FileList\start().
getButtonsAndOtherMarkers | ( | Folder | $folderObject | ) |
Return the buttons used by the filelist to include in the top header
Folder | $folderObject |
Definition at line 245 of file FileList.php.
References Folder\checkActionPermission(), GeneralUtility\fixed_lgd_cs(), Folder\getCombinedIdentifier(), FileList\getLanguageService(), FileList\getLinkToParentFolder(), Folder\getReadablePath(), Folder\getStorage(), FileList\listURL(), GeneralUtility\logDeprecatedFunction(), Icon\SIZE_SMALL, and BackendUtility\wrapClickMenuOnIcon().
|
protected |
Returns the database connection
Definition at line 1052 of file FileList.php.
References $GLOBALS.
getFolderInfo | ( | ) |
Gets the number of files and total size of a folder
Definition at line 499 of file FileList.php.
|
protected |
Returns an instance of LanguageService
Definition at line 1062 of file FileList.php.
References $GLOBALS.
Referenced by FileList\getButtonsAndOtherMarkers(), and FileList\start().
|
protected |
If there is a parent folder and user has access to it, return an icon which is linked to the filelist of the parent folder.
Folder | $currentFolder |
Definition at line 475 of file FileList.php.
Referenced by FileList\getButtonsAndOtherMarkers().
|
protected |
Fetch the translations for a sys_file_metadata record
$metaDataRecord |
Definition at line 799 of file FileList.php.
References $GLOBALS.
injectResourceFactory | ( | ResourceFactory | $resourceFactory | ) |
ResourceFactory | $resourceFactory |
Definition at line 171 of file FileList.php.
References FileList\$resourceFactory.
isImage | ( | $ext | ) |
Returns TRUE if $ext is an image-extension according to $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
string | $ext | File extension |
Definition at line 817 of file FileList.php.
References $GLOBALS.
isMediaFile | ( | $ext | ) |
Returns TRUE if $ext is an media-extension according to $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext']
string | $ext | File extension |
Definition at line 828 of file FileList.php.
References $GLOBALS.
linkClipboardHeaderIcon | ( | $string, | |
$_, | |||
$cmd, | |||
$warning = '' |
|||
) |
Wrapping input string in a link with clipboard command.
string | $string | String to be linked - must be htmlspecialchar'ed / prepared before. |
string | $_ | unused |
string | $cmd | "cmd" value |
string | $warning | Warning for JS confirm message |
Definition at line 308 of file FileList.php.
linkWrapDir | ( | $title, | |
Folder | $folderObject | ||
) |
Wraps the directory-titles
string | $title | String to be wrapped in links |
Folder | $folderObject | Folder to work on |
Definition at line 599 of file FileList.php.
References Folder\getCombinedIdentifier().
linkWrapFile | ( | $code, | |
File | $fileObject | ||
) |
Wraps filenames in links which opens the metadata editor.
string | $code | String to be wrapped in links |
File | $fileObject | File to be linked |
Definition at line 618 of file FileList.php.
References $url, File\_getMetaData(), File\checkActionPermission(), and File\isIndexed().
linkWrapSort | ( | $code, | |
$folderIdentifier, | |||
$col | |||
) |
Wraps the directory-titles ($code) in a link to filelist/Modules/Filelist/index.php (id=$path) and sorting commands...
string | $code | String to be wrapped |
string | $folderIdentifier | ID (path) |
string | $col | Sorting column |
Definition at line 841 of file FileList.php.
listURL | ( | $altId = '' | ) |
Returns list URL; This is the URL of the current script with id and imagemode parameters, that's all. The URL however is not relative, otherwise GeneralUtility::sanitizeLocalUrl() would say that the URL would be invalid
string | $altId |
Definition at line 650 of file FileList.php.
Referenced by FileList\getButtonsAndOtherMarkers().
makeClip | ( | $fileOrFolderObject | ) |
Creates the clipboard control pad
File | Folder | $fileOrFolderObject | Array with information about the file/directory for which to make the clipboard panel for the listing. |
Definition at line 863 of file FileList.php.
References Folder\checkActionPermission(), elseif, and Folder\getStorage().
makeEdit | ( | $fileOrFolderObject | ) |
Creates the edit control section
File | Folder | $fileOrFolderObject | Array with information about the file/directory for which to make the edit control section for the listing. |
Definition at line 926 of file FileList.php.
References $GLOBALS, $url, File\checkActionPermission(), and elseif.
makeRef | ( | $fileOrFolderObject | ) |
Make reference count
File | Folder | $fileOrFolderObject | Array with information about the file/directory for which to make the clipboard panel for the listing. |
Definition at line 1027 of file FileList.php.
start | ( | Folder | $folderObject, |
$pointer, | |||
$sort, | |||
$sortRev, | |||
$clipBoard = false , |
|||
$bigControlPanel = false |
|||
) |
Initialization of class
Folder | $folderObject | The folder to work on |
int | $pointer | Pointer |
bool | $sort | Sorting column |
bool | $sortRev | Sorting direction |
bool | $clipBoard | |
bool | $bigControlPanel | Show clipboard flag |
Definition at line 209 of file FileList.php.
References FileList\$bigControlPanel, FileList\$clipBoard, FileList\$folderObject, FileList\$sort, FileList\$sortRev, FileList\getBackendUser(), ResourceFactory\getInstance(), FileList\getLanguageService(), Folder\getReadablePath(), and path.
$bigControlPanel = 0 |
Definition at line 104 of file FileList.php.
Referenced by FileList\start().
$CBnames = array() |
Definition at line 156 of file FileList.php.
$clickMenus = 1 |
Definition at line 75 of file FileList.php.
$clipBoard = 0 |
Definition at line 99 of file FileList.php.
Referenced by FileList\start().
Clipboard $clipObj |
Definition at line 161 of file FileList.php.
$dirs = array() |
Definition at line 124 of file FileList.php.
$eCounter = 0 |
Definition at line 146 of file FileList.php.
|
protected |
Definition at line 184 of file FileList.php.
Referenced by FileList\__construct().
$files = array() |
Definition at line 129 of file FileList.php.
$firstElementNumber = 0 |
Definition at line 94 of file FileList.php.
$fixedL = 30 |
Definition at line 68 of file FileList.php.
|
protected |
Definition at line 139 of file FileList.php.
Referenced by FileList\start().
$HTMLcode = '' |
Definition at line 114 of file FileList.php.
|
protected |
Definition at line 179 of file FileList.php.
$iLimit = 40 |
Definition at line 47 of file FileList.php.
$JScode = '' |
Definition at line 109 of file FileList.php.
$path = '' |
Definition at line 134 of file FileList.php.
|
protected |
Definition at line 166 of file FileList.php.
Referenced by FileList\injectResourceFactory().
$sort = '' |
Definition at line 82 of file FileList.php.
Referenced by FileList\start().
$sortRev = 1 |
Definition at line 89 of file FileList.php.
Referenced by FileList\start().
$spaceIcon |
Definition at line 61 of file FileList.php.
$thumbs = false |
Definition at line 54 of file FileList.php.
$totalbytes = 0 |
Definition at line 119 of file FileList.php.
$totalItems = '' |
Definition at line 151 of file FileList.php.