interface ChangeDetectionStrategyInterface (View source)

Contract for a change detection strategy

Constants

STATUS_UNCHANGED

STATUS_CREATED

STATUS_CHANGED

STATUS_DELETED

Methods

int
getFileStatus(string $pathAndFilename)

Checks if the specified file has changed

mixed
setFileMonitor(FileMonitor $fileMonitor)

Creates a link to the file monitor using the strategy

void
shutdownObject()

Commit any necessary data, like the current modification time.

Details

int getFileStatus(string $pathAndFilename)

Checks if the specified file has changed

Parameters

string $pathAndFilename

Return Value

int

One of the STATUS_* constants

mixed setFileMonitor(FileMonitor $fileMonitor)

Creates a link to the file monitor using the strategy

Parameters

FileMonitor $fileMonitor

Return Value

mixed

void shutdownObject()

Commit any necessary data, like the current modification time.

Return Value

void