Ejemplo n.º 1
0
 /**
  * @param array $row
  * @return string
  */
 public function getTemplatePathAndFilename(array $row)
 {
     if (FALSE === empty($this->templatePathAndFilename)) {
         $templatePathAndFilename = GeneralUtility::getFileAbsFileName($this->templatePathAndFilename);
         if (TRUE === file_exists($templatePathAndFilename)) {
             return $templatePathAndFilename;
         }
     } else {
         $templatePathAndFilename = $row['tx_fed_fcefile'];
         if (FALSE === strpos($templatePathAndFilename, ':')) {
             return NULL;
         }
     }
     list(, $filename) = explode(':', $templatePathAndFilename);
     list($controllerAction, $format) = explode('.', $filename);
     $paths = $this->getTemplatePaths($row);
     $templatePathAndFilename = ResolveUtility::resolveTemplatePathAndFilenameByPathAndControllerNameAndActionAndFormat($paths, 'Content', $controllerAction, $format);
     return $templatePathAndFilename;
 }
Ejemplo n.º 2
0
 /**
  * @param array $row
  * @return string
  */
 public function getTemplatePathAndFilename(array $row)
 {
     $action = $this->getControllerActionReferenceFromRecord($row);
     $paths = $this->getTemplatePaths($row);
     if (FALSE === empty($action)) {
         list(, $action) = explode('->', $action);
         $templatePathAndFilename = ResolveUtility::resolveTemplatePathAndFilenameByPathAndControllerNameAndActionAndFormat($paths, 'Page', $action);
     }
     $templatePathAndFilename = GeneralUtility::getFileAbsFileName($templatePathAndFilename);
     return $templatePathAndFilename;
 }