PHP Класс DmitryDulepov\Realurl\Hooks\DataHandler

Показать файл Открыть проект

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

Свойство Тип Описание
$cache DmitryDulepov\Realurl\Cache\CacheInterface
$databaseConnection TYPO3\CMS\Dbal\Database\DatabaseConnection

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

Метод Описание
__construct ( ) Initializes the class.
processCmdmap_deleteAction ( string $table, string | integer $id ) Clears path and URL caches if the page was deleted.
processCmdmap_postProcess ( string $command, string $table, integer $id ) Expires caches if the page was moved.
processDatamap_afterDatabaseOperations ( string $status, string $tableName, integer $recordId, array $databaseData, TYPO3\CMS\Core\DataHandling\DataHandler $dataHandler ) : void A DataHandler hook to expire old records.

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

Метод Описание
clearAutoConfiguration ( string $tableName, array $databaseData ) Clears automatic configuration when necessary. Note: we do not check if it iss enabled. Even if now it is disabled, later it can be re-enabled and suddenly obsolete config will be used. So we clear always.
clearUrlCacheForAliasChanges ( string $tableName, integer $recordId ) : void Clears URL cache if it is found in the alias table.
expireCache ( string $status, string $tableName, string | integer $recordId, array $databaseData ) : void Expires cache if necessary when the record changes. For 'pages' we expire cache only if the page was modified. For 'pages_language_overlay' we do it on creation of a new translation too. For reasons see https://github.com/dmitryd/typo3-realurl/issues/313#issuecomment-257268851
expireCachesForPageAndSubpages ( integer $pageId, integer $languageId, integer $level ) : void Expires cache for the page and subpages.

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

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

Initializes the class.
public __construct ( )

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

Clears automatic configuration when necessary. Note: we do not check if it iss enabled. Even if now it is disabled, later it can be re-enabled and suddenly obsolete config will be used. So we clear always.
protected clearAutoConfiguration ( string $tableName, array $databaseData )
$tableName string
$databaseData array

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

Clears URL cache if it is found in the alias table.
protected clearUrlCacheForAliasChanges ( string $tableName, integer $recordId ) : void
$tableName string
$recordId integer
Результат void

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

Expires cache if necessary when the record changes. For 'pages' we expire cache only if the page was modified. For 'pages_language_overlay' we do it on creation of a new translation too. For reasons see https://github.com/dmitryd/typo3-realurl/issues/313#issuecomment-257268851
protected expireCache ( string $status, string $tableName, string | integer $recordId, array $databaseData ) : void
$status string
$tableName string
$recordId string | integer
$databaseData array
Результат void

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

Expires cache for the page and subpages.
protected expireCachesForPageAndSubpages ( integer $pageId, integer $languageId, integer $level ) : void
$pageId integer
$languageId integer
$level integer
Результат void

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

Clears path and URL caches if the page was deleted.
public processCmdmap_deleteAction ( string $table, string | integer $id )
$table string
$id string | integer

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

Expires caches if the page was moved.
public processCmdmap_postProcess ( string $command, string $table, integer $id )
$command string
$table string
$id integer

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

A DataHandler hook to expire old records.
public processDatamap_afterDatabaseOperations ( string $status, string $tableName, integer $recordId, array $databaseData, TYPO3\CMS\Core\DataHandling\DataHandler $dataHandler ) : void
$status string 'new' (ignoring) or 'update'
$tableName string
$recordId integer
$databaseData array
$dataHandler TYPO3\CMS\Core\DataHandling\DataHandler
Результат void

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

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

protected CacheInterface,DmitryDulepov\Realurl\Cache $cache
Результат DmitryDulepov\Realurl\Cache\CacheInterface

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

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