PHP Class eZ\Publish\Core\MVC\Symfony\Event\ContentCacheClearEvent

Inheritance: extends Symfony\Component\EventDispatcher\Event
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo )
addLocationToClear ( eZ\Publish\API\Repository\Values\Content\Location $location ) Adds a location that needs to be cleared.
getContentInfo ( ) : eZ\Publish\API\Repository\Values\Content\ContentInfo Returns ContentInfo object we're clearing the cache for.
getLocationsToClear ( ) : eZ\Publish\API\Repository\Values\Content\Location[] Returns all location objects registered to the cache clear process.
setLocationsToClear ( array $locationsToClear ) Replaces the list of locations to clear.

Method Details

__construct() public méthode

public __construct ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo )
$contentInfo eZ\Publish\API\Repository\Values\Content\ContentInfo

addLocationToClear() public méthode

Adds a location that needs to be cleared.
public addLocationToClear ( eZ\Publish\API\Repository\Values\Content\Location $location )
$location eZ\Publish\API\Repository\Values\Content\Location

getContentInfo() public méthode

Returns ContentInfo object we're clearing the cache for.
public getContentInfo ( ) : eZ\Publish\API\Repository\Values\Content\ContentInfo
Résultat eZ\Publish\API\Repository\Values\Content\ContentInfo

getLocationsToClear() public méthode

Returns all location objects registered to the cache clear process.
public getLocationsToClear ( ) : eZ\Publish\API\Repository\Values\Content\Location[]
Résultat eZ\Publish\API\Repository\Values\Content\Location[]

setLocationsToClear() public méthode

Replaces the list of locations to clear.
public setLocationsToClear ( array $locationsToClear )
$locationsToClear array