Documentation TYPO3 par Ameos |
Public Member Functions | |
start ($fileCmds) | |
init_actionPerms ($setup) | |
processData () | |
printLogErrorMessages ($redirect='') | |
findRecycler ($theFile) | |
writeLog ($action, $error, $details_nr, $details, $data) | |
func_delete ($cmds) | |
func_copy ($cmds) | |
func_move ($cmds) | |
func_rename ($cmds) | |
func_newfolder ($cmds) | |
func_newfile ($cmds) | |
func_edit ($cmds) | |
func_upload ($cmds) | |
func_unzip ($cmds) | |
Public Attributes | |
$maxCopyFileSize = 10000 | |
$maxMoveFileSize = 10000 | |
$maxUploadFileSize = 10000 | |
$unzipPath = '' | |
$dontCheckForUnique = 0 | |
$actionPerms | |
$recyclerFN = '_recycler_' | |
$useRecycler = 1 | |
$PHPFileFunctions = 0 | |
$dont_use_exec_commands = 0 | |
$internalUploadMap = array() |
Definition at line 105 of file class.t3lib_extfilefunc.php.
|
Goes back in the path and checks in each directory if a folder named $this->recyclerFN (usually '_recycler_') is present. If a folder in the tree happens to be a _recycler_-folder (which means that we're deleting something inside a _recycler_-folder) this is ignored
Definition at line 328 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_basicFileFunctions::cleanDirectoryName(), t3lib_basicFileFunctions::isPathValid(), and t3lib_div::split_fileref(). Referenced by func_delete(). |
|
Copying files and folders (action=2)
Definition at line 451 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkIfAllowed(), t3lib_basicFileFunctions::checkIfFullAccess(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_div::fixPermissions(), t3lib_basicFileFunctions::getUniqueName(), t3lib_basicFileFunctions::is_directory(), t3lib_div::isFirstPartOfStr(), t3lib_basicFileFunctions::isPathValid(), and t3lib_div::split_fileref(). Referenced by processData(). |
|
Deleting files and folders (action=4)
Definition at line 384 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkPathAgainstMounts(), findRecycler(), func_move(), t3lib_basicFileFunctions::is_directory(), and t3lib_basicFileFunctions::isPathValid(). Referenced by processData(). |
|
Editing textfiles or foldes (action=9)
Definition at line 750 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkIfAllowed(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_div::inList(), t3lib_div::split_fileref(), and t3lib_div::writeFile(). Referenced by processData(). |
|
Moving files and folders (action=3)
Definition at line 542 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkIfAllowed(), t3lib_basicFileFunctions::checkIfFullAccess(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_basicFileFunctions::getUniqueName(), t3lib_basicFileFunctions::is_directory(), t3lib_div::isFirstPartOfStr(), t3lib_basicFileFunctions::isPathValid(), and t3lib_div::split_fileref(). Referenced by func_delete(), and processData(). |
|
This creates a new file. (action=8)
Definition at line 713 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkFileNameLen(), t3lib_basicFileFunctions::checkIfAllowed(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_basicFileFunctions::cleanFileName(), t3lib_div::inList(), t3lib_basicFileFunctions::is_directory(), t3lib_div::split_fileref(), and t3lib_div::writeFile(). Referenced by processData(). |
|
This creates a new folder. (action=6)
Definition at line 683 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkFileNameLen(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_basicFileFunctions::cleanFileName(), t3lib_basicFileFunctions::is_directory(), and t3lib_div::mkdir(). Referenced by processData(). |
|
Renaming files or foldes (action=5)
Definition at line 637 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkFileNameLen(), t3lib_basicFileFunctions::checkIfAllowed(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_basicFileFunctions::cleanFileName(), and t3lib_div::split_fileref(). Referenced by processData(). |
|
Unzipping file (action=7) This is permitted only if the user has fullAccess or if the file resides
Definition at line 821 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkIfFullAccess(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_basicFileFunctions::is_directory(), and t3lib_div::split_fileref(). Referenced by processData(). |
|
Upload of files (action=1)
Definition at line 782 of file class.t3lib_extfilefunc.php. References t3lib_basicFileFunctions::checkIfAllowed(), t3lib_basicFileFunctions::checkPathAgainstMounts(), t3lib_basicFileFunctions::cleanFileName(), t3lib_basicFileFunctions::getUniqueName(), t3lib_basicFileFunctions::is_directory(), t3lib_div::split_fileref(), and t3lib_div::upload_copy_move(). Referenced by processData(). |
|
Sets up permission to perform file/directory operations. See below or the be_user-table for the significanse of the various bits in $setup ($BE_USER->user['fileoper_perms'])
Definition at line 181 of file class.t3lib_extfilefunc.php. |
|
Print log error messages from the operations of this script instance
Definition at line 270 of file class.t3lib_extfilefunc.php. References t3lib_div::makeInstance(). |
|
Processing the command array in $this->fileCmdMap
Definition at line 213 of file class.t3lib_extfilefunc.php. References func_copy(), func_delete(), func_edit(), func_move(), func_newfile(), func_newfolder(), func_rename(), func_unzip(), and func_upload(). |
|
Initialization of the class
Definition at line 151 of file class.t3lib_extfilefunc.php. |
|
Logging file operations
Definition at line 357 of file class.t3lib_extfilefunc.php. |
|
Initial value: Array( // This array is self-explaning (look in the class below). It grants access to the functions. This could be set from outside in order to enabled functions to users. See also the function init_actionPerms() which takes input directly from the user-record 'deleteFile' => 0, // Deleting files physically 'deleteFolder' => 0, // Deleting foldes physically 'deleteFolderRecursively' => 0, // normally folders are deleted by the PHP-function rmdir(), but with this option a user deletes with 'rm -Rf ....' which is pretty wild! 'moveFile' => 0, 'moveFolder' => 0, 'copyFile' => 0, 'copyFolder' => 0, 'newFolder' => 0, 'newFile' => 0, 'editFile' => 0, 'unzipFile' => 0, 'uploadFile' => 0, 'renameFile' => 0, 'renameFolder' => 0 ) Definition at line 115 of file class.t3lib_extfilefunc.php. |