PHP 클래스 DmitryDulepov\Realurl\Hooks\DataHandler

파일 보기 프로젝트 열기: dmitryd/typo3-realurl

보호된 프로퍼티들

프로퍼티 타입 설명
$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