TYPO3  7.6
Public Member Functions | Public Attributes | List of all members
LostFilesCommand Class Reference
Inheritance diagram for LostFilesCommand:
CleanerCommand CommandLineController

Public Member Functions

 __construct ()
 
 main ()
 
 main_autoFix ($resultArray)
 
- Public Member Functions inherited from CleanerCommand
 __construct ()
 
 cli_main ($argv)
 
 cli_referenceIndexCheck ()
 
 cli_noExecutionCheck ($matchString)
 
 cli_printInfo ($header, $res)
 
 genTree ($rootID, $depth=1000, $echoLevel=0, $callBack= '')
 
 genTree_traverse ($rootID, $depth, $echoLevel=0, $callBack= '', $versionSwapmode= '', $rootIsVersion=0, $accumulatedPath= '')
 
 infoStr ($rec)
 
- Public Member Functions inherited from CommandLineController
 __construct ()
 
 cli_getArgArray ($option, $argv)
 
 cli_isArg ($option)
 
 cli_argValue ($option, $idx=0)
 
 cli_getArgIndex (array $argv=array())
 
 cli_validateArgs ()
 
 cli_setArguments (array $argv=array())
 
 cli_keyboardInput ()
 
 cli_keyboardInput_yes ($msg= '')
 
 cli_echo ($string= '', $force=false)
 
 cli_help ()
 
 cli_indent ($str, $indent)
 

Public Attributes

 $checkRefIndex = true
 
- Public Attributes inherited from CleanerCommand
 $genTree_traverseDeleted = true
 
 $genTree_traverseVersions = true
 
 $label_infoString = 'The list of records is organized as [table]:[uid]:[field]:[flexpointer]:[softref_key]'
 
 $pagetreePlugins = array()
 
 $cleanerModules = array()
 
 $performanceStatistics = array()
 
- Public Attributes inherited from CommandLineController
 $cli_args = array()
 
 $cli_options
 
 $cli_help
 
 $stdin = null
 

Additional Inherited Members

- Protected Attributes inherited from CleanerCommand
 $workspaceIndex = array()
 

Detailed Description

Looking for Lost files

Definition at line 20 of file LostFilesCommand.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 30 of file LostFilesCommand.php.

References CommandLineController\cli_help().

Member Function Documentation

main ( )

Find lost files in uploads/ folder FIX METHOD: Simply delete the file...

Todo:

Add parameter to exclude filepath

Add parameter to list more file names/patterns to ignore

Add parameter to include RTEmagic images

Returns
array

Definition at line 67 of file LostFilesCommand.php.

References $GLOBALS, CommandLineController\cli_argValue(), CommandLineController\cli_help(), and GeneralUtility\isFirstPartOfStr().

main_autoFix (   $resultArray)

Mandatory autofix function Will run auto-fix on the result array. Echos status during processing.

Parameters
array$resultArrayResult array from main() function
Returns
void

Definition at line 144 of file LostFilesCommand.php.

References CleanerCommand\cli_noExecutionCheck().

Member Data Documentation

$checkRefIndex = true

Definition at line 25 of file LostFilesCommand.php.