1 | <?php |
||
27 | class FluidStandaloneService |
||
28 | { |
||
29 | /** |
||
30 | * The object manager |
||
31 | * |
||
32 | * @var \TYPO3\CMS\Extbase\Object\ObjectManager |
||
33 | * @inject |
||
34 | */ |
||
35 | protected $objectManager; |
||
36 | |||
37 | /** |
||
38 | * The configuration manager |
||
39 | * |
||
40 | * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManager |
||
41 | * @inject |
||
42 | */ |
||
43 | protected $configurationManager; |
||
44 | |||
45 | /** |
||
46 | * Returns the template folders for the given part |
||
47 | * |
||
48 | * @param string $part |
||
49 | * @return array |
||
50 | * @throws \TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException |
||
51 | */ |
||
52 | public function getTemplateFolders($part = 'template') |
||
81 | |||
82 | /** |
||
83 | * Makes sure the path ends with a slash |
||
84 | * |
||
85 | * @param string $path |
||
86 | * @return string |
||
87 | */ |
||
88 | protected function ensureSuffixedPath($path) |
||
92 | |||
93 | /** |
||
94 | * Return path and filename for a file or path. |
||
95 | * Only the first existing file/path will be returned. |
||
96 | * respect *RootPaths and *RootPath |
||
97 | * |
||
98 | * @param string $pathAndFilename e.g. Email/Name.html |
||
99 | * @param string $part "template", "partial", "layout" |
||
100 | * @return string Filename/path |
||
101 | */ |
||
102 | public function getTemplatePath($pathAndFilename, $part = 'template') |
||
107 | |||
108 | /** |
||
109 | * Return path and filename for one or many files/paths. |
||
110 | * Only existing files/paths will be returned. |
||
111 | * respect *RootPaths and *RootPath |
||
112 | * |
||
113 | * @param string $pathAndFilename Path/filename (Email/Name.html) or path |
||
114 | * @param string $part "template", "partial", "layout" |
||
115 | * @return array All existing matches found |
||
116 | */ |
||
117 | protected function getTemplatePaths($pathAndFilename, $part = 'template') |
||
128 | |||
129 | /** |
||
130 | * Renders a fluid standlone view for the given template |
||
131 | * |
||
132 | * @param string $template |
||
133 | * @param array $variables |
||
134 | * @param string $extensionName |
||
135 | * @param string $pluginName |
||
136 | * @return string |
||
137 | */ |
||
138 | public function renderTemplate($template, $variables, $extensionName = 'SfEventMgt', $pluginName = 'Pievent') |
||
152 | |||
153 | /** |
||
154 | * Parses the given string with Fluid View |
||
155 | * |
||
156 | * @param string $string Any string |
||
157 | * @param array $variables Variables |
||
158 | * @return string Parsed string |
||
159 | */ |
||
160 | public function fluidParseString($string, $variables = []) |
||
171 | |||
172 | /** |
||
173 | * @return DatabaseConnection |
||
174 | */ |
||
175 | protected static function getDatabaseConnection() |
||
179 | } |
||
180 |