PHP Class Prado\Caching\TFileCacheDependency

TFileCacheDependency performs dependency checking based on the last modification time of the file specified via {@link setFileName FileName}. The dependency is reported as unchanged if and only if the file's last modification time remains unchanged.
Since: 3.1.0
Author: Qiang Xue ([email protected])
Inheritance: extends TCacheDependency
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( $fileName ) Constructor.
getFileName ( ) : string
getHasChanged ( ) : boolean Performs the actual dependency checking.
getTimestamp ( ) : integer
setFileName ( $value )

Method Details

__construct() public method

Constructor.
public __construct ( $fileName )

getFileName() public method

public getFileName ( ) : string
return string the name of the file whose change is to be checked

getHasChanged() public method

This method returns true if the last modification time of the file is changed.
public getHasChanged ( ) : boolean
return boolean whether the dependency is changed or not.

getTimestamp() public method

public getTimestamp ( ) : integer
return integer the last modification time of the file

setFileName() public method

public setFileName ( $value )