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
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

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

Method Details

__construct() public méthode

Constructor.
public __construct ( $fileName )

getFileName() public méthode

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

getHasChanged() public méthode

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

getTimestamp() public méthode

public getTimestamp ( ) : integer
Résultat integer the last modification time of the file

setFileName() public méthode

public setFileName ( $value )