PHP Class DmitryDulepov\Realurl\ext_update

Author: Dmitry Dulepov ([email protected])
Afficher le fichier Open project: dmitryd/typo3-realurl

Protected Properties

Свойство Type Description
$databaseConnection TYPO3\CMS\Core\Database\DatabaseConnection

Méthodes publiques

Méthode Description
__construct ( ) Creates the instance of the class.
access ( ) : boolean Checks if the script should execute. We check for everything except table structure.
main ( ) Runs the update.

Méthodes protégées

Méthode Description
checkAndRenameTables ( ) Checks and renames *cache tables to *data tables.
checkAndUpdatePathCachePrimaryKey ( ) : void Checks if the primary key needs updates (this is something that TYPO3 sql parser fails to do for years) and does necessary changes.
getLocker ( ) : TYPO3\CMS\Core\Locking\Locker | TYPO3\CMS\Core\Locking\LockingStrategyInterface Obtains the locker depending on the TYPO3 version.
hasOldCacheTables ( )
pathCacheNeedsUpdates ( ) : boolean Checks if path cache table is ok.
removeUrlDataEntriesWithIgnoredParameters ( ) Removes entries with parameters that should be ignored.
updateRealurlTableStructure ( ) : void Updates realurl table structure. The code is copied almost 1:1 from ExtensionManagerTables class.

Method Details

__construct() public méthode

Creates the instance of the class.
public __construct ( )

access() public méthode

Checks if the script should execute. We check for everything except table structure.
public access ( ) : boolean
Résultat boolean

checkAndRenameTables() protected méthode

Checks and renames *cache tables to *data tables.
protected checkAndRenameTables ( )

checkAndUpdatePathCachePrimaryKey() protected méthode

Checks if the primary key needs updates (this is something that TYPO3 sql parser fails to do for years) and does necessary changes.
protected checkAndUpdatePathCachePrimaryKey ( ) : void
Résultat void

getLocker() protected méthode

Obtains the locker depending on the TYPO3 version.
protected getLocker ( ) : TYPO3\CMS\Core\Locking\Locker | TYPO3\CMS\Core\Locking\LockingStrategyInterface
Résultat TYPO3\CMS\Core\Locking\Locker | TYPO3\CMS\Core\Locking\LockingStrategyInterface

hasOldCacheTables() protected méthode

protected hasOldCacheTables ( )

main() public méthode

Runs the update.
public main ( )

pathCacheNeedsUpdates() protected méthode

Checks if path cache table is ok.
protected pathCacheNeedsUpdates ( ) : boolean
Résultat boolean

removeUrlDataEntriesWithIgnoredParameters() protected méthode

Removes entries with parameters that should be ignored.

updateRealurlTableStructure() protected méthode

We ignore any errors because nothing can be done about those really. The client will have to do database update anyway, so he will see all failed queries.
protected updateRealurlTableStructure ( ) : void
Résultat void

Property Details

$databaseConnection protected_oe property

protected DatabaseConnection,TYPO3\CMS\Core\Database $databaseConnection
Résultat TYPO3\CMS\Core\Database\DatabaseConnection