PHP Class Neos\Flow\Monitor\ChangeDetectionStrategy\ModificationTimeStrategy

Inheritance: implements Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface, implements Neos\Flow\Monitor\ChangeDetectionStrategy\StrategyWithMarkDeletedInterface
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$cache Neos\Cache\Frontend\StringFrontend
$fileMonitor Neos\Flow\Monitor\FileMonitor
$filesAndModificationTimes array
$modificationTimesChanged boolean If the modification times changed and therefore need to be cached

Méthodes publiques

Méthode Description
getFileStatus ( string $pathAndFilename ) : integer Checks if the specified file has changed
injectCache ( StringFrontend $cache ) : void Injects the Flow_Monitor cache
setFileDeleted ( string $pathAndFilename ) : void Notify the change strategy that this file was deleted and does not need to be tracked anymore.
setFileMonitor ( FileMonitor $fileMonitor ) : void Initializes this strategy
shutdownObject ( ) : void Caches the file modification times

Method Details

getFileStatus() public méthode

Checks if the specified file has changed
public getFileStatus ( string $pathAndFilename ) : integer
$pathAndFilename string
Résultat integer One of the STATUS_* constants

injectCache() public méthode

Injects the Flow_Monitor cache
public injectCache ( StringFrontend $cache ) : void
$cache Neos\Cache\Frontend\StringFrontend
Résultat void

setFileDeleted() public méthode

Notify the change strategy that this file was deleted and does not need to be tracked anymore.
public setFileDeleted ( string $pathAndFilename ) : void
$pathAndFilename string
Résultat void

setFileMonitor() public méthode

Initializes this strategy
public setFileMonitor ( FileMonitor $fileMonitor ) : void
$fileMonitor Neos\Flow\Monitor\FileMonitor
Résultat void

shutdownObject() public méthode

Caches the file modification times
public shutdownObject ( ) : void
Résultat void

Property Details

$cache protected_oe property

protected StringFrontend,Neos\Cache\Frontend $cache
Résultat Neos\Cache\Frontend\StringFrontend

$fileMonitor protected_oe property

protected FileMonitor,Neos\Flow\Monitor $fileMonitor
Résultat Neos\Flow\Monitor\FileMonitor

$filesAndModificationTimes protected_oe property

protected array $filesAndModificationTimes
Résultat array

$modificationTimesChanged protected_oe property

If the modification times changed and therefore need to be cached
protected bool $modificationTimesChanged
Résultat boolean