1 | <?php |
||
27 | class FluidStandaloneService |
||
28 | { |
||
29 | /** |
||
30 | * The object manager |
||
31 | * |
||
32 | * @var \TYPO3\CMS\Extbase\Object\ObjectManager |
||
33 | */ |
||
34 | protected $objectManager; |
||
35 | |||
36 | /** |
||
37 | * The configuration manager |
||
38 | * |
||
39 | * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManager |
||
40 | */ |
||
41 | protected $configurationManager; |
||
42 | |||
43 | /** |
||
44 | * DI for $configurationManager |
||
45 | * |
||
46 | * @param \TYPO3\CMS\Extbase\Configuration\ConfigurationManager $configurationManager |
||
47 | */ |
||
48 | public function injectConfigurationManager( |
||
53 | |||
54 | /** |
||
55 | * DI for $objectManager |
||
56 | * |
||
57 | * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager |
||
58 | */ |
||
59 | public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) |
||
63 | |||
64 | /** |
||
65 | * Returns the template folders for the given part |
||
66 | * |
||
67 | * @param string $part |
||
68 | * @return array |
||
69 | * @throws \TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException |
||
70 | */ |
||
71 | public function getTemplateFolders($part = 'template') |
||
100 | |||
101 | /** |
||
102 | * Makes sure the path ends with a slash |
||
103 | * |
||
104 | * @param string $path |
||
105 | * @return string |
||
106 | */ |
||
107 | protected function ensureSuffixedPath($path) |
||
111 | |||
112 | /** |
||
113 | * Return path and filename for a file or path. |
||
114 | * Only the first existing file/path will be returned. |
||
115 | * respect *RootPaths and *RootPath |
||
116 | * |
||
117 | * @param string $pathAndFilename e.g. Email/Name.html |
||
118 | * @param string $part "template", "partial", "layout" |
||
119 | * @return string Filename/path |
||
120 | */ |
||
121 | public function getTemplatePath($pathAndFilename, $part = 'template') |
||
126 | |||
127 | /** |
||
128 | * Return path and filename for one or many files/paths. |
||
129 | * Only existing files/paths will be returned. |
||
130 | * respect *RootPaths and *RootPath |
||
131 | * |
||
132 | * @param string $pathAndFilename Path/filename (Email/Name.html) or path |
||
133 | * @param string $part "template", "partial", "layout" |
||
134 | * @return array All existing matches found |
||
135 | */ |
||
136 | protected function getTemplatePaths($pathAndFilename, $part = 'template') |
||
147 | |||
148 | /** |
||
149 | * Renders a fluid standlone view for the given template |
||
150 | * |
||
151 | * @param string $template |
||
152 | * @param array $variables |
||
153 | * @param string $extensionName |
||
154 | * @param string $pluginName |
||
155 | * @return string |
||
156 | */ |
||
157 | public function renderTemplate($template, $variables, $extensionName = 'SfEventMgt', $pluginName = 'Pievent') |
||
171 | |||
172 | /** |
||
173 | * Parses the given string with Fluid View |
||
174 | * |
||
175 | * @param string $string Any string |
||
176 | * @param array $variables Variables |
||
177 | * @return string Parsed string |
||
178 | */ |
||
179 | public function parseStringFluid($string, $variables = []) |
||
190 | |||
191 | /** |
||
192 | * @return DatabaseConnection |
||
193 | */ |
||
194 | protected static function getDatabaseConnection() |
||
198 | } |
||
199 |