‪TYPO3CMS  ‪main
TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableTask Class Reference
Inheritance diagram for TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableTask:

Public Member Functions

bool execute ()
string getAdditionalInformation ()
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
 __construct ()
 setTaskUid ($id)
int getTaskUid ()
string getTaskTitle ()
string getTaskDescription ()
string getTaskClassName ()
bool isDisabled ()
 setDisabled ($flag)
 setRunOnNextCronJob ($flag)
bool getRunOnNextCronJob ()
 setExecutionTime ($timestamp)
int null getTaskGroup ()
 setTaskGroup ($taskGroup)
int getExecutionTime ()
 setDescription ($description)
string getDescription ()
 setScheduler ()
 unsetScheduler ()
 registerSingleExecution ($timestamp)
 registerRecurringExecution ($start, $interval, $end=0, $multiple=false, $cron_cmd='')
 setExecution (Execution $execution)
Execution object null getExecution ()
int getNextDueExecution ()
bool areMultipleExecutionsAllowed ()
bool save ()
 stop ()
int getType ()

Public Attributes

array $selectedTables = array( )
- ‪Public Attributes inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
const TYPE_SINGLE = 1

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
 logException (\Exception $e)
 getLanguageService ()
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Scheduler\Task\AbstractTask
TYPO3 CMS Scheduler Scheduler null $scheduler
int $taskUid = 0
bool $disabled = false
bool $runOnNextCronJob = false
Execution $execution
int $executionTime = 0
string $description = ''
int null $taskGroup = 0

Detailed Description

Perform OPTIMIZE TABLE SQL statements

This task reorganizes the physical storage of table data and associated index data, to reduce storage space and improve I/O efficiency when accessing the table. The exact changes made to each table depend on the storage engine used by that table.

This class is a specific scheduler task implementation is not considered part of the Public TYPO3 API.

Definition at line 32 of file OptimizeDatabaseTableTask.php.

Member Function Documentation

◆ execute()

bool TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableTask::execute ( )

Execute table optimization, called by scheduler.


Reimplemented from TYPO3\CMS\Scheduler\Task\AbstractTask.

Definition at line 46 of file OptimizeDatabaseTableTask.php.

◆ getAdditionalInformation()

string TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableTask::getAdditionalInformation ( )

Output the selected tables


Reimplemented from TYPO3\CMS\Scheduler\Task\AbstractTask.

Definition at line 74 of file OptimizeDatabaseTableTask.php.

Member Data Documentation

◆ $selectedTables

array TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableTask::$selectedTables = array( )

Database tables that should be cleaned up, set by additional field provider.

Selected tables to optimize

Definition at line 39 of file OptimizeDatabaseTableTask.php.