Rewritten:
[core.git] / framework / main / classes / template / menu / class_MenuTemplateEngine.php
index a0c75eb..d29af28 100644 (file)
@@ -11,6 +11,7 @@ use CoreFramework\Template\CompileableTemplate;
 use CoreFramework\Template\Engine\BaseTemplateEngine;
 
 // Import SPL stuff
+use \SplFileInfo;
 use \UnexpectedValueException;
 
 /**
@@ -865,16 +866,16 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
        }
 
        /**
-        * Getter for menu cache file (FQFN)
+        * Getter for menu cache file instance
         *
-        * @return      $fqfn   Full-qualified file name of the menu cache
+        * @return      $fileInstance   Full-qualified file name of the menu cache
         */
-       public function getMenuCacheFqfn () {
+       public function getMenuCacheFile () {
                // Get the application instance from registry
                $applicationInstance = Registry::getRegistry()->getInstance('app');
 
-               // Get the FQFN ready
-               $fqfn = sprintf('%s%smenus/_cache/%s.%s',
+               // Get the file instance ready
+               $fileInstance = new SplFileInfo(sprintf('%s%smenus/_cache/%s.%s',
                        $this->getConfigInstance()->getConfigEntry('application_base_path'),
                        $applicationInstance->getAppShortName(),
                        md5(
@@ -883,10 +884,10 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
                                $this->getMenuInstance()->__toString()
                        ),
                        $this->getMenuInstance()->getMenuType()
-               );
+               ));
 
                // Return it
-               return $fqfn;
+               return $fileInstance;
        }
 
 }