use CoreFramework\Template\Engine\BaseTemplateEngine;
// Import SPL stuff
+use \SplFileInfo;
use \UnexpectedValueException;
/**
}
/**
- * Getter for image cache file (FQFN)
+ * Getter for image cache file instance
*
- * @return $fqfn Full-qualified file name of the image cache
+ * @return $fileInstance An instance of a SplFileInfo class
*/
- public function getImageCacheFqfn () {
- // Get the FQFN ready
- $fqfn = sprintf('%s%s%s/%s.%s',
+ public function getImageCacheFile () {
+ // Get the instance ready
+ $fileInstance = new SplFileInfo(sprintf('%s%s%s/%s.%s',
$this->getConfigInstance()->getConfigEntry('framework_base_path'),
$this->getGenericBasePath(),
'images/_cache',
$this->getImageInstance()->getImageName() . ':' . $this->__toString() . ':' . $this->getImageInstance()->__toString()
),
$this->getImageInstance()->getImageType()
- );
+ ));
// Return it
- return $fqfn;
+ return $fileInstance;
}
/**