Checks if a timestamp represents the latest resource.
integer $timestamp A UNIX timestamp:
Boolean True if the timestamp is up to date
Overrides ResourceInterface::isFresh
public function isFresh($timestamp) {
if (!is_dir($this->path) || filemtime($this->path) > $timestamp) {
return false;
}
foreach ($this as $resource) {
if (!$resource
->isFresh($timestamp)) {
return false;
}
}
return true;
}