TYPO3 CMS  TYPO3_6-2
TruncateSysFileProcessedFileTable.php
Go to the documentation of this file.
1 <?php
3 
21 
25  protected $title = 'Truncate all processed files to clean up obsolete records.';
26 
33  public function checkForUpdate(&$description) {
34  if ($this->isWizardDone() || !$this->checkIfTableExists('sys_file_processedfile')) {
35  return FALSE;
36  }
37 
38  $description = 'To re-process all files correctly we truncate the table. This will make sure there are no obsolete files in the database.';
39  return TRUE;
40  }
41 
49  public function performUpdate(array &$databaseQueries, &$customMessages) {
50  $GLOBALS['TYPO3_DB']->exec_TRUNCATEquery('sys_file_processedfile');
51  $databaseQueries[] = $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery;
52  $this->markWizardAsDone();
53  return TRUE;
54  }
55 
56 }
57 ?>
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]