PHP Класс DmitryDulepov\Realurl\ext_update

Автор: Dmitry Dulepov ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$databaseConnection TYPO3\CMS\Core\Database\DatabaseConnection

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

Creates the instance of the class.
public __construct ( )

access() публичный Метод

Checks if the script should execute. We check for everything except table structure.
public access ( ) : boolean
Результат boolean

checkAndRenameTables() защищенный Метод

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

checkAndUpdatePathCachePrimaryKey() защищенный Метод

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
Результат void

getLocker() защищенный Метод

Obtains the locker depending on the TYPO3 version.
protected getLocker ( ) : TYPO3\CMS\Core\Locking\Locker | TYPO3\CMS\Core\Locking\LockingStrategyInterface
Результат TYPO3\CMS\Core\Locking\Locker | TYPO3\CMS\Core\Locking\LockingStrategyInterface

hasOldCacheTables() защищенный Метод

protected hasOldCacheTables ( )

main() публичный Метод

Runs the update.
public main ( )

pathCacheNeedsUpdates() защищенный Метод

Checks if path cache table is ok.
protected pathCacheNeedsUpdates ( ) : boolean
Результат boolean

removeUrlDataEntriesWithIgnoredParameters() защищенный Метод

Removes entries with parameters that should be ignored.

updateRealurlTableStructure() защищенный Метод

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
Результат void

Описание свойств

$databaseConnection защищенное свойство

protected DatabaseConnection,TYPO3\CMS\Core\Database $databaseConnection
Результат TYPO3\CMS\Core\Database\DatabaseConnection