public function getAlbumPath() { return \Tx_Yag_Domain_FileSystem_Div::concatenatePaths(array($this->getGalleryPath(), $this->albumName . '|' . $this->albumUid)); }
protected function buildItemObjectInfo(PathInfo $pathInfo, \Tx_Yag_Domain_Model_Item $item) { return array('size' => $item->getFilesize(), 'atime' => $item->getTstamp()->getTimestamp(), 'mtime' => $item->getTstamp()->getTimestamp(), 'ctime' => $item->getCrdate()->getTimestamp(), 'mimetype' => 'image/jpeg', 'yagItem' => $item, 'name' => $item->getOriginalFilename(), 'identifier' => \Tx_Yag_Domain_FileSystem_Div::concatenatePaths(array($pathInfo->getAlbumPath(), $item->getTitle() . ' |' . $item->getUid())), 'storage' => $this->storage->getUid(), 'description' => $item->getDescription(), 'title' => $item->getTitle(), 'height' => $item->getHeight(), 'width' => $item->getWidth(), 'sourceUri' => $item->getSourceuri()); }
/** * Set the TS defined custom paths in view * * @param \TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view * @throws Exception */ protected function setCustomPathsInView(\TYPO3\CMS\Extbase\Mvc\View\ViewInterface $view) { $templatePathAndFilename = null; // We can overwrite a template via TS using plugin.yag.settings.controller.<ControllerName>.<actionName>.template if ($this->configurationBuilder) { $templatePathAndFilename = $this->configurationBuilder->buildThemeConfiguration()->getTemplate($this->request->getControllerName(), $this->request->getControllerActionName()); $this->objectManager->get('Tx_Yag_Utility_HeaderInclusion')->includeThemeDefinedHeader($this->configurationBuilder->buildThemeConfiguration()); } if (!$templatePathAndFilename) { $templatePathAndFilename = $this->settings['controller'][$this->request->getControllerName()][$this->request->getControllerActionName()]['template']; } if (isset($templatePathAndFilename) && strlen($templatePathAndFilename) > 0) { /** * Format Overlay */ if ($this->request->getFormat() && strtolower($this->request->getFormat()) !== 'html') { $templatePathAndFilename = Tx_Yag_Domain_FileSystem_Div::concatenatePaths(array(dirname($templatePathAndFilename), basename($templatePathAndFilename, '.html') . '.' . $this->request->getFormat())); } if (file_exists(GeneralUtility::getFileAbsFileName($templatePathAndFilename))) { $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($templatePathAndFilename)); } else { throw new Exception('Given template path and filename could not be found or resolved: ' . $templatePathAndFilename . ' 1284655109'); } } }