TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DeletedRecordsCommand Class Reference
Inheritance diagram for DeletedRecordsCommand:

Public Member Functions

 configure ()
 

Protected Member Functions

 execute (InputInterface $input, OutputInterface $output)
 
 getTablesWithDeletedFlags ()
 
 deleteRecords (array $deletedRecords, bool $dryRun, SymfonyStyle $io)
 
 getBackendUser ()
 

Detailed Description

Force-deletes all records in the database which have a deleted=1 flag

Definition at line 34 of file DeletedRecordsCommand.php.

Member Function Documentation

configure ( )

Configure the command by defining the name, options and arguments

Definition at line 40 of file DeletedRecordsCommand.php.

deleteRecords ( array  $deletedRecords,
bool  $dryRun,
SymfonyStyle  $io 
)
protected

Deletes records via DataHandler

Parameters
array$deletedRecordstwo level array with tables and uids
bool$dryRuncheck if the records should NOT be deleted (use –dry-run to avoid)
SymfonyStyle$io
Returns
void

Definition at line 270 of file DeletedRecordsCommand.php.

References GeneralUtility\makeInstance().

Referenced by DeletedRecordsCommand\execute().

execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Executes the command to find and permanently delete records which are marked as deleted

Parameters
InputInterface$input
OutputInterface$output
Returns
void

Definition at line 73 of file DeletedRecordsCommand.php.

References MathUtility\canBeInterpretedAsInteger(), DeletedRecordsCommand\deleteRecords(), MathUtility\forceIntegerInRange(), and DeletedRecordsCommand\getBackendUser().

getBackendUser ( )
protected

Short-hand function for accessing the current backend user

Returns
BackendUserAuthentication

Definition at line 314 of file DeletedRecordsCommand.php.

References $GLOBALS.

Referenced by DeletedRecordsCommand\execute().

getTablesWithDeletedFlags ( )
protected

Fetches all tables registered in the TCA with a deleted and that are not pages (which are handled separately)

Returns
array an associative array with the table as key and the

Definition at line 247 of file DeletedRecordsCommand.php.

References $GLOBALS.