PHP Class Neos\Flow\Monitor\ChangeDetectionStrategy\ModificationTimeStrategy

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

Protected Properties

Property 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

Public Methods

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

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

injectCache() public method

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

setFileDeleted() public method

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

setFileMonitor() public method

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

shutdownObject() public method

Caches the file modification times
public shutdownObject ( ) : void
return void

Property Details

$cache protected property

protected StringFrontend,Neos\Cache\Frontend $cache
return Neos\Cache\Frontend\StringFrontend

$fileMonitor protected property

protected FileMonitor,Neos\Flow\Monitor $fileMonitor
return Neos\Flow\Monitor\FileMonitor

$filesAndModificationTimes protected property

protected array $filesAndModificationTimes
return array

$modificationTimesChanged protected property

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