TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Lowlevel\LostFilesCommand Class Reference
Inheritance diagram for TYPO3\CMS\Lowlevel\LostFilesCommand:
TYPO3\CMS\Lowlevel\CleanerCommand TYPO3\CMS\Core\Controller\CommandLineController

Public Member Functions

 __construct ()
 
 main ()
 
 main_autoFix ($resultArray)
 
- Public Member Functions inherited from TYPO3\CMS\Lowlevel\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 TYPO3\CMS\Core\Controller\CommandLineController
 __construct ()
 
 cli_getArgArray ($option, $argv)
 
 cli_isArg ($option)
 
 cli_argValue ($option, $idx=0)
 
 cli_getArgIndex (array $argv=[])
 
 cli_validateArgs ()
 
 cli_setArguments (array $argv=[])
 
 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 TYPO3\CMS\Lowlevel\CleanerCommand
 $genTree_traverseDeleted = true
 
 $genTree_traverseVersions = true
 
 $label_infoString = 'The list of records is organized as [table]:[uid]:[field]:[flexpointer]:[softref_key]'
 
 $pagetreePlugins = []
 
 $cleanerModules = []
 
 $performanceStatistics = []
 
- Public Attributes inherited from TYPO3\CMS\Core\Controller\CommandLineController
 $cli_args = []
 
 $cli_options
 
 $cli_help
 
 $stdin = null
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Lowlevel\CleanerCommand
 $workspaceIndex = []
 

Detailed Description

Looking for Lost files

Definition at line 20 of file LostFilesCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Lowlevel\LostFilesCommand::__construct ( )

Constructor

Definition at line 30 of file LostFilesCommand.php.

References TYPO3\CMS\Core\Controller\CommandLineController\cli_help().

Member Function Documentation

◆ main()

TYPO3\CMS\Lowlevel\LostFilesCommand::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, TYPO3\CMS\Core\Controller\CommandLineController\cli_argValue(), TYPO3\CMS\Core\Controller\CommandLineController\cli_help(), TYPO3\CMS\Core\Utility\GeneralUtility\getAllFilesAndFoldersInPath(), TYPO3\CMS\Core\Utility\GeneralUtility\isFirstPartOfStr(), TYPO3\CMS\Core\Utility\GeneralUtility\removePrefixPathFromList(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ main_autoFix()

TYPO3\CMS\Lowlevel\LostFilesCommand::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 TYPO3\CMS\Lowlevel\CleanerCommand\cli_noExecutionCheck(), and TYPO3\CMS\Core\Utility\GeneralUtility\getFileAbsFileName().

Member Data Documentation

◆ $checkRefIndex

TYPO3\CMS\Lowlevel\LostFilesCommand::$checkRefIndex = true

Definition at line 25 of file LostFilesCommand.php.