Class TFileCacheDependency
TFileCacheDependency class.
TFileCacheDependency performs dependency checking based on the last modification time of the file specified via FileName. The dependency is reported as unchanged if and only if the file's last modification time remains unchanged.
Constructor Summary |
public |
Constructor.
|
Method Summary |
string
|
|
boolean
|
Performs the actual dependency checking.
|
int
|
|
void
|
|
Methods Inherited From TComponent |
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
Constructor Details |
__construct
Constructor.
|
Method Details |
getFileName
public string getFileName |
() |
Output |
string
| the name of the file whose change is to be checked |
Exception |
|
getHasChanged
public boolean getHasChanged |
() |
Performs the actual dependency checking.
This method returns true if the last modification time of the file is changed.
Output |
boolean
| whether the dependency is changed or not. |
Exception |
|
getTimestamp
public int getTimestamp |
() |
Output |
int
| the last modification time of the file |
Exception |
|
setFileName
public void setFileName |
(string $value ) |
Input |
string | $value | the name of the file whose change is to be checked |
Output |
Exception |
|
|