PHP Класс Neos\Flow\Monitor\ChangeDetectionStrategy\ModificationTimeStrategy

Наследование: implements Neos\Flow\Monitor\ChangeDetectionStrategy\ChangeDetectionStrategyInterface, implements Neos\Flow\Monitor\ChangeDetectionStrategy\StrategyWithMarkDeletedInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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

Описание методов

getFileStatus() публичный Метод

Checks if the specified file has changed
public getFileStatus ( string $pathAndFilename ) : integer
$pathAndFilename string
Результат integer One of the STATUS_* constants

injectCache() публичный Метод

Injects the Flow_Monitor cache
public injectCache ( StringFrontend $cache ) : void
$cache Neos\Cache\Frontend\StringFrontend
Результат void

setFileDeleted() публичный Метод

Notify the change strategy that this file was deleted and does not need to be tracked anymore.
public setFileDeleted ( string $pathAndFilename ) : void
$pathAndFilename string
Результат void

setFileMonitor() публичный Метод

Initializes this strategy
public setFileMonitor ( FileMonitor $fileMonitor ) : void
$fileMonitor Neos\Flow\Monitor\FileMonitor
Результат void

shutdownObject() публичный Метод

Caches the file modification times
public shutdownObject ( ) : void
Результат void

Описание свойств

$cache защищенное свойство

protected StringFrontend,Neos\Cache\Frontend $cache
Результат Neos\Cache\Frontend\StringFrontend

$fileMonitor защищенное свойство

protected FileMonitor,Neos\Flow\Monitor $fileMonitor
Результат Neos\Flow\Monitor\FileMonitor

$filesAndModificationTimes защищенное свойство

protected array $filesAndModificationTimes
Результат array

$modificationTimesChanged защищенное свойство

If the modification times changed and therefore need to be cached
protected bool $modificationTimesChanged
Результат boolean