

Public Member Functions | |
| start ($path, $pointer, $sort, $sortRev, $clipBoard=0) | |
| generateList () | |
| getButtonsAndOtherMarkers ($path) | |
| linkClipboardHeaderIcon ($string, $table, $cmd, $warning='') | |
| getTable ($files, $dirs, $rowlist) | |
| getFolderInfo () | |
| formatDirList ($items) | |
| linkWrapDir ($code, $path) | |
| linkWrapFile ($code, $path) | |
| listURL () | |
| dirData ($theFile) | |
| formatFileList ($items) | |
| isImage ($ext) | |
| linkWrapSort ($code, $path, $col) | |
| readDirectory ($path, $type, $extList='') | |
| makeClip ($theData) | |
| makeRef ($theData) | |
Public Attributes | |
| $iLimit = 40 | |
| $thumbs = 0 | |
| $widthGif = '<img src="clear.gif" width="1" height="1" hspace="165" alt="" />' | |
| $fixedL = 30 | |
| $script = 'file_list.php' | |
| $clickMenus = 1 | |
| $sort = '' | |
| $sortRev = 1 | |
| $firstElementNumber = 0 | |
| $clipBoard = 0 | |
| $JScode = '' | |
| $HTMLcode = '' | |
| $totalbytes = 0 | |
| $dirs = Array() | |
| $files = Array() | |
| $path = '' | |
| $eCounter = 0 | |
| $dirCounter = 0 | |
| $totalItems = '' | |
| $CBnames = array() | |
Definition at line 75 of file class.file_list.inc.
| fileList::dirData | ( | $ | theFile | ) |
Returns some data specific for the directories...
| array | File information array |
Definition at line 425 of file class.file_list.inc.
References $GLOBALS, $path, and t3lib_BEfunc::getPathType_web_nonweb().
Referenced by formatDirList(), and getButtonsAndOtherMarkers().
| fileList::formatDirList | ( | $ | items | ) |
This returns tablerows for the directories in the array $items['sorting'].
| array | Directory items |
Definition at line 312 of file class.file_list.inc.
References $GLOBALS, $key, $path, dirData(), t3lib_div::fixed_lgd(), t3lib_div::formatSize(), t3lib_recordList::fwd_rwd_nav(), linkWrapDir(), makeClip(), and makeRef().
Referenced by getTable().
| fileList::formatFileList | ( | $ | items | ) |
This returns tablerows for the files in the array $items['sorting'].
| array | File items |
Definition at line 450 of file class.file_list.inc.
References $GLOBALS, $key, t3lib_div::fixed_lgd(), t3lib_div::formatSize(), t3lib_recordList::fwd_rwd_nav(), t3lib_BEfunc::getFileIcon(), isImage(), linkWrapFile(), makeClip(), and makeRef().
Referenced by getTable().
| fileList::generateList | ( | ) |
Reading files and directories, counting elements and generating the list in ->HTMLcode
Definition at line 137 of file class.file_list.inc.
References getTable(), and readDirectory().
| fileList::getButtonsAndOtherMarkers | ( | $ | path | ) |
Return the buttons used by the file list to include in the top header
Definition at line 149 of file class.file_list.inc.
References $GLOBALS, $path, dirData(), t3lib_div::fixed_lgd_cs(), linkWrapDir(), and t3lib_iconWorks::skinImg().
| fileList::getFolderInfo | ( | ) |
Gets the number of files and total size of a folder
Definition at line 297 of file class.file_list.inc.
References $GLOBALS, and t3lib_div::formatSize().
| fileList::getTable | ( | $ | files, | |
| $ | dirs, | |||
| $ | rowlist | |||
| ) |
Returns a table with directories and files listed.
| array | Array of files from path | |
| array | Array of directories from path | |
| string | List of rows to display horizontallyh |
Definition at line 221 of file class.file_list.inc.
References $dirs, $files, $GLOBALS, formatDirList(), formatFileList(), linkClipboardHeaderIcon(), linkWrapSort(), t3lib_div::rmFromList(), t3lib_iconWorks::skinImg(), and t3lib_div::uniqueList().
Referenced by generateList().
| fileList::isImage | ( | $ | ext | ) |
Returns true if $ext is an image-extension according to $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
| string | file extension |
Definition at line 539 of file class.file_list.inc.
References $GLOBALS, and t3lib_div::inList().
Referenced by formatFileList().
| fileList::linkClipboardHeaderIcon | ( | $ | string, | |
| $ | table, | |||
| $ | cmd, | |||
| $ | warning = '' | |||
| ) |
Wrapping input string in a link with clipboard command.
| string | String to be linked - must be htmlspecialchar'ed / prepared before. | |
| string | table - NOT USED | |
| string | "cmd" value | |
| string | Warning for JS confirm message |
Definition at line 207 of file class.file_list.inc.
References $GLOBALS.
Referenced by getTable().
| fileList::linkWrapDir | ( | $ | code, | |
| $ | path | |||
| ) |
Wraps the directory-titles
| string | String to be wrapped in links | |
| string | ID (path) |
Definition at line 381 of file class.file_list.inc.
References $path.
Referenced by formatDirList(), and getButtonsAndOtherMarkers().
| fileList::linkWrapFile | ( | $ | code, | |
| $ | path | |||
| ) |
Wraps filenames in links which opens them in a window IF they are in web-path.
| string | String to be wrapped in links | |
| string | ID (path) |
Definition at line 400 of file class.file_list.inc.
References $path, t3lib_div::getIndpEnv(), and t3lib_div::isFirstPartOfStr().
Referenced by formatFileList().
| fileList::linkWrapSort | ( | $ | code, | |
| $ | path, | |||
| $ | col | |||
| ) |
Wraps the directory-titles ($code) in a link to file_list.php (id=$path) and sorting commands...
| string | String to be wrapped | |
| string | ID (path) | |
| string | Sorting column |
Definition at line 551 of file class.file_list.inc.
References $path.
Referenced by getTable().
| fileList::listURL | ( | ) |
Returns list URL; This is the URL of the current script with id and imagemode parameters, thats all.
Definition at line 415 of file class.file_list.inc.
| fileList::makeClip | ( | $ | theData | ) |
Creates the clipboard control pad
| array | Array with information about the file/directory for which to make the clipboard panel for the listing. |
Definition at line 623 of file class.file_list.inc.
Referenced by formatDirList(), and formatFileList().
| fileList::makeRef | ( | $ | theData | ) |
Make reference count
| array | Array with information about the file/directory for which to make the clipboard panel for the listing. |
Definition at line 668 of file class.file_list.inc.
References $GLOBALS, $row, and t3lib_div::isFirstPartOfStr().
Referenced by formatDirList(), and formatFileList().
| fileList::readDirectory | ( | $ | path, | |
| $ | type, | |||
| $ | extList = '' | |||
| ) |
Returns an array with file/dir items + an array with the sorted items
| string | Path (absolute) to read | |
| string | $type is the technical type; file,dir,link. empty is all kinds of stuff. | |
| string | $extList: List of fileextensions to select. If empty, all are selected. |
Definition at line 569 of file class.file_list.inc.
References $GLOBALS, $path, $val, t3lib_div::inList(), and t3lib_div::split_fileref().
Referenced by generateList().
| fileList::start | ( | $ | path, | |
| $ | pointer, | |||
| $ | sort, | |||
| $ | sortRev, | |||
| $ | clipBoard = 0 | |||
| ) |
Initialization of class
| string | The path to list | |
| integer | Pointer | |
| boolean | Sorting column | |
| boolean | Sorting direction | |
| boolean | Show clipboard flag |
Definition at line 113 of file class.file_list.inc.
References $clipBoard, $GLOBALS, $path, $sort, and $sortRev.
| fileList::$CBnames = array() |
Definition at line 99 of file class.file_list.inc.
| fileList::$clickMenus = 1 |
Definition at line 81 of file class.file_list.inc.
| fileList::$clipBoard = 0 |
| fileList::$dirCounter = 0 |
Definition at line 96 of file class.file_list.inc.
| fileList::$dirs = Array() |
| fileList::$eCounter = 0 |
| fileList::$files = Array() |
| fileList::$firstElementNumber = 0 |
| fileList::$fixedL = 30 |
| fileList::$HTMLcode = '' |
| fileList::$iLimit = 40 |
| fileList::$JScode = '' |
Definition at line 89 of file class.file_list.inc.
| fileList::$path = '' |
Definition at line 94 of file class.file_list.inc.
Referenced by dirData(), formatDirList(), getButtonsAndOtherMarkers(), linkWrapDir(), linkWrapFile(), linkWrapSort(), readDirectory(), and start().
| fileList::$script = 'file_list.php' |
| fileList::$sort = '' |
| fileList::$sortRev = 1 |
| fileList::$thumbs = 0 |
Definition at line 77 of file class.file_list.inc.
| fileList::$totalbytes = 0 |
Definition at line 91 of file class.file_list.inc.
| fileList::$totalItems = '' |
| fileList::$widthGif = '<img src="clear.gif" width="1" height="1" hspace="165" alt="" />' |
Definition at line 78 of file class.file_list.inc.
1.4.7