Refactored templates processing

This commit is contained in:
Franck Allimant
2013-12-20 00:49:08 +01:00
parent 0c24a8afc0
commit 3a2ad352cc
7 changed files with 202 additions and 238 deletions

View File

@@ -60,6 +60,15 @@ class Module extends BaseModule
return THELIA_MODULE_DIR . $this->getI18nPath();
}
/**
* Return the absolute path to one of the module's template directories
*
* @param int $templateSubdirName the name of the, probably one of TemplateDefinition::xxx_SUBDIR constants
*/
public function getAbsoluteTemplateDirectoryPath($templateSubdirName) {
return sprintf("%s%stemplates%s%s", $this->getAbsoluteBaseDir(), DS, DS, $templateSubdirName);
}
/**
* Calculate next position relative to module type
*/