/**
  * Gets the csv file path for the given language
  * @param string $basePath
  * @return string
  */
 private function LanguageCsvFile($basePath)
 {
     $ext = IO\Path::Extension($basePath);
     $baseFile = IO\Path::RemoveExtension($basePath);
     $langFile = IO\Path::AddExtension($baseFile, $this->language);
     return IO\Path::AddExtension($langFile, $ext);
 }
Beispiel #2
0
 /**
  * Gets the module templates
  * @param FrontendModule $module The frontend module
  * @return string[] Returns the template files 
  */
 protected function ModuleTemplates($module)
 {
     $folder = PathUtil::ModuleCustomTemplatesFolder($module);
     if (!Folder::Exists($folder)) {
         return array();
     }
     $templates = Folder::GetFiles($folder);
     $result = array();
     foreach ($templates as $template) {
         if (Path::Extension($template) == 'phtml') {
             $result[] = Path::RemoveExtension($template);
         }
     }
     return $result;
 }