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

Inheritance: extends Symfony\Component\EventDispatcher\Event
Datei anzeigen Open project: ezsystems/ezpublish-kernel Class Usage Examples

Public Methods

Method 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 method

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

addLocationToClear() public method

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 method

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

getLocationsToClear() public method

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

setLocationsToClear() public method

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