Project

General

Profile

Actions

Feature #57446

closed

harmonize visibility of template/partial/layoutRootPath(s) getter/setter functions in /typo3/sysext/fluid/Classes/View/TemplateView.php

Added by Georg Tiefenbrunn over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-03-31
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

I tried to add rendering of partials from other extensions to f:render viewHelper and run into some problems if non default partial root paths (e.g. EXT:my_ext/Resources/Private/Partials/News) are used. So I had to store the original partial root paths to be able to reset them after rendering the external partial.

I tried to use the new plural getter/setter methods introduced in Revision f122c4f5 (getPartialRootPaths() instead of getPartialRootPath()).

As function getPartialRootPaths() is protected I had to use ReflectionMethod to store/reset the partial root paths. It would be very convenient if it were a public getter. I couldnt't figure out why getPartialRootPaths() and getLayoutRootPaths() are protectetd, while getTemplateRootPaths() is public. Imho this should be harmonized. As getTemplateRootPath(), getPartialRootPath() and getLayoutRootPath() are deprecated they should left protected. The new plural setter/getter function imho should all be public so we can use $this->viewHelperVariableContainer->getView()->getPartialRootPaths() inside viewHelpers.

Please have a look at /typo3/sysext/fluid/Classes/View/TemplateView.php:

protected function getTemplateRootPath() @deprecated since fluid 6.2
public function setTemplateRootPath()
public function getTemplateRootPaths()
public function setTemplateRootPaths()

protected function getPartialRootPath() @deprecated since fluid 6.2
public function setPartialRootPath()
protected function getPartialRootPaths() -> should be changed to public
public function setPartialRootPaths()

protected function getLayoutRootPath() @deprecated since fluid 6.2
public function setLayoutRootPath()
protected function getLayoutRootPaths() -> should be changed to public
public function setLayoutRootPaths()


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #69863: Use new standalone Fluid as composer dependencyClosedClaus Due2015-09-16

Actions
Actions

Also available in: Atom PDF