PHP Class eZ\Publish\Core\MVC\Symfony\Cache\Http\SignalSlot\PurgeForContentHttpCacheSlot

Will by default use the contentId property of the signal object, as it is the most common. Override the extractContentId() method in your own signal to use a different property.
Inheritance: extends HttpCacheSlot
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes protégées

Méthode Description
extractContentId ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed Default implementation that returns the contentId property's value.
extractLocationIds ( eZ\Publish\Core\SignalSlot\Signal $signal ) : array Default implementation that returns the signal location property values.
purgeHttpCache ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed Purges all caches.

Method Details

extractContentId() protected méthode

Default implementation that returns the contentId property's value.
protected extractContentId ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed
$signal eZ\Publish\Core\SignalSlot\Signal
Résultat mixed Content ID

extractLocationIds() protected méthode

This is extracted and provided to purgeForContent in case content is trashed where affected location is no longer returned by API.
protected extractLocationIds ( eZ\Publish\Core\SignalSlot\Signal $signal ) : array
$signal eZ\Publish\Core\SignalSlot\Signal
Résultat array Location ID's

purgeHttpCache() protected méthode

Purges all caches.
protected purgeHttpCache ( eZ\Publish\Core\SignalSlot\Signal $signal ) : mixed
$signal eZ\Publish\Core\SignalSlot\Signal
Résultat mixed