TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Lowlevel\LostFilesCommand Class Reference
Inheritance diagram for TYPO3\CMS\Lowlevel\LostFilesCommand:
TYPO3\CMS\Lowlevel\CleanerCommand TYPO3\CMS\Core\Controller\CommandLineController tx_lowlevel_lost_files

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=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 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 = array()
 
 $cleanerModules = array()
 
 $performanceStatistics = array()
 
- Public Attributes inherited from TYPO3\CMS\Core\Controller\CommandLineController
 $cli_args = array()
 
 $cli_options
 
 $cli_help
 
 $stdin = NULL
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Lowlevel\CleanerCommand
 $workspaceIndex = array()
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Looking for Lost files

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 22 of file LostFilesCommand.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Todo:
Define visibility

Definition at line 34 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 TODO: Add parameter to list more file names/patterns to ignore TODO: Add parameter to include RTEmagic images

Returns
array
Todo:
Define visibility

Definition at line 71 of file LostFilesCommand.php.

References 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
Todo:
Define visibility

Definition at line 149 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
Todo:
Define visibility

Definition at line 27 of file LostFilesCommand.php.