[BUGFIX] Use late static binding for compilable viewhelpers 84/40184/5
authorMarkus Klein <markus.klein@typo3.org>
Thu, 11 Jun 2015 12:58:37 +0000 (14:58 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Jun 2015 17:13:45 +0000 (19:13 +0200)
Using self::renderStatic() in the render method of the viewhelpers
forces extending viewhelpers to copy the render method, which is
useless overhead.

Adjust all viewhelpers to use static::renderStatic() instead to
allow for late static binding.

Resolves: #67420
Releases: master
Change-Id: I12ca42a16365ee2baceeca6a17193e5f6877ed27
Reviewed-on: http://review.typo3.org/40184
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Manuel Selbach <m.selbach@reply.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
81 files changed:
typo3/sysext/backend/Classes/ViewHelpers/SpriteManagerIconViewHelper.php
typo3/sysext/belog/Classes/ViewHelpers/Be/PagePathViewHelper.php
typo3/sysext/belog/Classes/ViewHelpers/ErrorIconViewHelper.php
typo3/sysext/belog/Classes/ViewHelpers/FormatDetailsViewHelper.php
typo3/sysext/belog/Classes/ViewHelpers/HistoryEntryViewHelper.php
typo3/sysext/belog/Classes/ViewHelpers/IsExtensionLoadedViewHelper.php
typo3/sysext/belog/Classes/ViewHelpers/UsernameViewHelper.php
typo3/sysext/belog/Classes/ViewHelpers/WorkspaceTitleViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/ArrayElementViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/Display/PagesViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/Display/SysFileMountsViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/Display/SysLanguageViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/EditRecordViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/IssueCommandViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/RemoveUserViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/SpriteIconForRecordViewHelper.php
typo3/sysext/beuser/Classes/ViewHelpers/SwitchUserViewHelper.php
typo3/sysext/documentation/Classes/ViewHelpers/FormatsViewHelper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/Format/ImplodeViewHelper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/Format/JsonEncodeViewHelper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/InstallationStateCssClassViewHelper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/TimeSinceLastUpdateViewHelper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/Typo3DependencyViewHelper.php
typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractConditionViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/AliasViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/BaseViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/Buttons/CshViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/Buttons/IconViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/Buttons/ShortcutViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/InfoboxViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/PageInfoViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Be/PagePathViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/CaseViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/CountViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/DebugViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/ElseViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/ForViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/BytesViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/CaseViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/CdataViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/CropViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/CurrencyViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/DateViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlentitiesDecodeViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/Nl2brViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/NumberViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/PaddingViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/PrintfViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/RawViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/StripTagsViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/UrlencodeViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/RenderViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/SwitchViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/ThenViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Uri/EmailViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Uri/ExternalViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Uri/PageViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Uri/ResourceViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Uri/TypolinkViewHelper.php
typo3/sysext/indexed_search/Classes/ViewHelpers/Format/DateTimeViewHelper.php
typo3/sysext/indexed_search/Classes/ViewHelpers/Format/FlagValueViewHelper.php
typo3/sysext/indexed_search/Classes/ViewHelpers/Format/GroupListViewHelper.php
typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingResultsViewHelper.php
typo3/sysext/indexed_search/Classes/ViewHelpers/PageBrowsingViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/ConstantViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/File/ExistsViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/File/ImageDimensionViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/File/RelativePathViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/File/SizeViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/Format/CropViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/Format/ImageMagickCommandsViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/Format/PhpErrorCodeViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/Object/ArrayValueByKeyViewHelper.php
typo3/sysext/install/Classes/ViewHelpers/PhpInfoViewHelper.php
typo3/sysext/reports/Classes/ViewHelpers/IconViewHelper.php
typo3/sysext/scheduler/Classes/ViewHelpers/ModuleLinkViewHelper.php
typo3/sysext/sys_note/Classes/ViewHelpers/DeleteLinkViewHelper.php
typo3/sysext/sys_note/Classes/ViewHelpers/EditLinkViewHelper.php

index e421f52..c65eda2 100644 (file)
@@ -35,7 +35,14 @@ class SpriteManagerIconViewHelper extends AbstractViewHelper implements Compilab
         * @return string
         */
        public function render($iconName, $options = array()) {
-               return self::renderStatic(array('iconName' => $iconName, 'options' => $options), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'iconName' => $iconName,
+                               'options' => $options
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index d992cc9..481e1d9 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Belog\ViewHelpers\Be;
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
 use TYPO3\CMS\Fluid\ViewHelpers\Be\AbstractBackendViewHelper;
@@ -33,7 +34,7 @@ class PagePathViewHelper extends AbstractBackendViewHelper implements Compilable
         * @return string Page path string
         */
        public function render($pid, $titleLimit = 20) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'pid' => $pid,
                                'titleLimit' => $titleLimit
index d8514cb..3a24181 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Belog\ViewHelpers;
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 use TYPO3\CMS\Backend\Template\DocumentTemplate;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
@@ -35,8 +36,7 @@ class ErrorIconViewHelper extends AbstractBackendViewHelper implements Compilabl
         * @return string the rendered error icon link
         */
        public function render($errorNumber = 0) {
-
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'errorNumber' => $errorNumber
                        ),
index a8b8129..1063dd8 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Belog\ViewHelpers;
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Belog\Domain\Model\LogEntry;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
@@ -39,7 +40,7 @@ class FormatDetailsViewHelper extends AbstractViewHelper implements CompilableIn
         * @return string Formatted details
         */
        public function render(LogEntry $logEntry) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'logEntry' => $logEntry
                        ),
index 1cb4c46..6b735ba 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Belog\ViewHelpers;
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Backend\Utility\IconUtility;
 use TYPO3\CMS\Belog\Domain\Model\HistoryEntry;
@@ -39,7 +40,7 @@ class HistoryEntryViewHelper extends AbstractViewHelper implements CompilableInt
         * @return string Formatted history entry if one exists, else empty string
         */
        public function render($uid) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uid' => $uid
                        ),
@@ -86,5 +87,5 @@ class HistoryEntryViewHelper extends AbstractViewHelper implements CompilableInt
                $historyLink = '<a href="' . htmlspecialchars($historyHref) . '">' . $historyIcon . '</a>';
                return $historyLabel . '&nbsp;' . $historyLink;
        }
-}
 
+}
index 4d042bb..9346c79 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Belog\ViewHelpers;
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
@@ -33,7 +34,7 @@ class IsExtensionLoadedViewHelper extends AbstractViewHelper implements Compilab
         * @return bool TRUE if extension is loaded, FALSE otherwise
         */
        public function render($extensionKey) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'extensionKey' => $extensionKey
                        ),
@@ -52,4 +53,5 @@ class IsExtensionLoadedViewHelper extends AbstractViewHelper implements Compilab
        static public function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) {
                return ExtensionManagementUtility::isLoaded($arguments['extensionKey']);
        }
+
 }
index c3de5f0..70abd99 100644 (file)
@@ -40,7 +40,7 @@ class UsernameViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @return string Username or an empty string if there is no user with that UID
         */
        public function render($uid) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uid' => $uid
                        ),
index 0d771e2..d013fd9 100644 (file)
@@ -40,7 +40,7 @@ class WorkspaceTitleViewHelper extends AbstractViewHelper implements CompilableI
         * @return string workspace title or UID
         */
        public function render($uid) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uid' => $uid
                        ),
index 89fec24..4446b6f 100644 (file)
@@ -32,7 +32,15 @@ class ArrayElementViewHelper extends AbstractViewHelper implements CompilableInt
         * @return string
         */
        public function render(array $array, $key, $subKey = '') {
-               return self::renderStatic(array('array' => $array, 'key' => $key, 'subKey' => $subKey), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'array' => $array,
+                               'key' => $key,
+                               'subKey' => $subKey
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index 5b1040e..662ab28 100644 (file)
@@ -33,7 +33,7 @@ class PagesViewHelper extends AbstractViewHelper implements CompilableInterface
         * @return string
         */
        public function render($uids = '') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uids' => $uids,
                        ),
index f655490..0739dc1 100644 (file)
@@ -33,7 +33,7 @@ class SysFileMountsViewHelper extends AbstractViewHelper implements CompilableIn
         * @return string
         */
        public function render($uids = '') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uids' => $uids,
                        ),
index b3fe6c2..16335fe 100644 (file)
@@ -33,7 +33,7 @@ class SysLanguageViewHelper extends AbstractViewHelper implements CompilableInte
         * @return string
         */
        public function render($uids = '') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uids' => $uids,
                        ),
index 35414e0..4ea058f 100644 (file)
@@ -35,7 +35,7 @@ class EditRecordViewHelper extends AbstractViewHelper implements CompilableInter
         * @see \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl()
         */
        public function render($parameters) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'parameters' => $parameters
                        ),
@@ -55,4 +55,5 @@ class EditRecordViewHelper extends AbstractViewHelper implements CompilableInter
                $parameters = GeneralUtility::explodeUrl2Array($arguments['parameters']);
                return BackendUtility::getModuleUrl('record_edit', $parameters);
        }
+
 }
index 6bd56c3..0cb85cb 100644 (file)
@@ -40,7 +40,7 @@ class IssueCommandViewHelper extends AbstractViewHelper implements CompilableInt
         * @see \TYPO3\CMS\Backend\Template\DocumentTemplate::issueCommand()
         */
        public function render($parameters, $redirectUrl = '') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'parameters' => $parameters,
                                'redirectUrl' => $redirectUrl
@@ -68,4 +68,5 @@ class IssueCommandViewHelper extends AbstractViewHelper implements CompilableInt
                ];
                return htmlspecialchars(BackendUtility::getModuleUrl('tce_db', $urlParameters) . $arguments['parameters'] . BackendUtility::getUrlToken('tceAction'));
        }
+
 }
index 6a36ba2..0476807 100644 (file)
@@ -38,7 +38,7 @@ class RemoveUserViewHelper extends AbstractViewHelper implements CompilableInter
         * @return string
         */
        public function render(BackendUser $backendUser) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'backendUser' => $backendUser
                        ),
index 3553c2e..85ce76d 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Beuser\ViewHelpers;
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 use TYPO3\CMS\Backend\Utility\IconUtility;
 use TYPO3\CMS\Extbase\Domain\Model\BackendUser;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
@@ -36,7 +37,7 @@ class SpriteIconForRecordViewHelper extends AbstractBackendViewHelper implements
         * @see \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord($table, $row)
         */
        public function render($table, $object) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'table' => $table,
                                'object' => $object
index ae4e054..78f9c0f 100644 (file)
@@ -37,7 +37,7 @@ class SwitchUserViewHelper extends AbstractViewHelper implements CompilableInter
         * @return string
         */
        public function render(BackendUser $backendUser) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'backendUser' => $backendUser
                        ),
@@ -64,4 +64,5 @@ class SwitchUserViewHelper extends AbstractViewHelper implements CompilableInter
                        '" target="_top" title="' . htmlspecialchars($title) . '">' .
                        IconUtility::getSpriteIcon(('actions-system-backend-user-switch')) . '</a>';
        }
+
 }
index e597fdd..48e71fe 100644 (file)
@@ -35,7 +35,7 @@ class FormatsViewHelper extends AbstractViewHelper implements CompilableInterfac
         * @return string
         */
        public function render(\TYPO3\CMS\Documentation\Domain\Model\DocumentTranslation $documentTranslation) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'documentTranslation' => $documentTranslation,
                        ),
index 4eba9e8..c4f77df 100644 (file)
@@ -35,7 +35,7 @@ class ImplodeViewHelper extends AbstractViewHelper implements CompilableInterfac
         * @api
         */
        public function render(array $implode, $delimiter = ', ') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'implode' => $implode,
                                'delimiter' => $delimiter,
index e6deec6..437f5c9 100644 (file)
@@ -42,7 +42,7 @@ class JsonEncodeViewHelper extends AbstractViewHelper implements CompilableInter
         * @api
         */
        public function render() {
-               return self::renderStatic(
+               return static::renderStatic(
                        $this->arguments,
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
index 1c9a21b..bee6bb4 100644 (file)
@@ -38,7 +38,7 @@ class InstallationStateCssClassViewHelper extends AbstractViewHelper implements
         * @return string the rendered a tag
         */
        public function render($needle, array $haystack) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'needle' => $needle,
                                'haystack' => $haystack,
index a92b349..132ecdf 100644 (file)
@@ -33,7 +33,7 @@ class TimeSinceLastUpdateViewHelper extends AbstractViewHelper implements Compil
         * @return string
         */
        public function render($lastUpdateTime) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'lastUpdateTime' => $lastUpdateTime,
                        ),
index 8cfb241..688292a 100644 (file)
@@ -36,7 +36,7 @@ class Typo3DependencyViewHelper extends AbstractViewHelper implements Compilable
         * @return string
         */
        public function render(Extension $extension) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'extension' => $extension,
                        ),
@@ -82,4 +82,5 @@ class Typo3DependencyViewHelper extends AbstractViewHelper implements Compilable
                $numericHighestVersion = VersionNumberUtility::convertVersionNumberToInteger($highestVersion);
                return MathUtility::isIntegerInRange($numericTypo3Version, $numericLowestVersion, $numericHighestVersion);
        }
+
 }
index f020886..f4010d9 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\Core\ViewHelper;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\ViewHelpers\ThenViewHelper;
 use TYPO3\CMS\Fluid\ViewHelpers\ElseViewHelper;
 use TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode;
@@ -248,4 +249,5 @@ abstract class AbstractConditionViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHel
        static protected function evaluateCondition($arguments = NULL) {
                return (isset($arguments['condition']) && $arguments['condition']);
        }
+
 }
index fac2501..8139369 100644 (file)
@@ -53,7 +53,7 @@ class AliasViewHelper extends AbstractViewHelper implements CompilableInterface
         * @api
         */
        public function render(array $map) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array('map' => $map),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
index 7533b40..27bdb10 100644 (file)
@@ -44,7 +44,7 @@ class BaseViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @api
         */
        public function render() {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
index 6e33daf..950aacc 100644 (file)
@@ -71,7 +71,7 @@ class CshViewHelper extends AbstractBackendViewHelper implements CompilableInter
                                'The option styleAttributes has no effect anymore and can be removed without problems. The parameter will be removed in TYPO3 CMS 8.'
                        );
                }
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'table' => $table,
                                'field' => $field,
@@ -98,4 +98,5 @@ class CshViewHelper extends AbstractBackendViewHelper implements CompilableInter
                }
                return '<div class="docheader-csh">' . BackendUtility::cshItem($table, $field) . '</div>';
        }
+
 }
index 6c0accb..2ced2b1 100644 (file)
@@ -66,7 +66,7 @@ class IconViewHelper extends AbstractBackendViewHelper implements CompilableInte
         * @return string The rendered icon with or without link
         */
        public function render($uri = '', $icon = 'actions-document-close', $title = '', $additionalAttributes = array()) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uri' => $uri,
                                'icon' => $icon,
@@ -102,4 +102,5 @@ class IconViewHelper extends AbstractBackendViewHelper implements CompilableInte
                }
                return '<a href="' . $uri . '"' . $additionalTagAttributes . '>' . $icon . '</a>';
        }
+
 }
index 87eea97..6267d71 100644 (file)
@@ -66,7 +66,7 @@ class ShortcutViewHelper extends AbstractBackendViewHelper implements Compilable
         */
 
        public function render(array $getVars = array(), array $setVars = array()) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'getVars' => $getVars,
                                'setVars' => $setVars
@@ -104,4 +104,5 @@ class ShortcutViewHelper extends AbstractBackendViewHelper implements Compilable
                }
                return '';
        }
+
 }
index bd9deec..b432247 100644 (file)
@@ -67,7 +67,7 @@ class InfoboxViewHelper extends AbstractViewHelper implements CompilableInterfac
         * @return string
         */
        public function render($title = NULL, $message = NULL, $state = self::STATE_NOTICE, $iconName = NULL, $disableIcon = FALSE) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'title' => $title,
                                'message' => $message,
@@ -150,4 +150,5 @@ class InfoboxViewHelper extends AbstractViewHelper implements CompilableInterfac
                                '</div>' .
                        '</div>';
        }
+
 }
index 82b9e73..c14f8dc 100644 (file)
@@ -50,7 +50,7 @@ class PageInfoViewHelper extends AbstractBackendViewHelper implements Compilable
         * @see \TYPO3\CMS\Backend\Template\DocumentTemplate::getPageInfo() Note: can't call this method as it's protected!
         */
        public function render() {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
@@ -88,4 +88,5 @@ class PageInfoViewHelper extends AbstractBackendViewHelper implements Compilable
                // Setting icon with clickmenu + uid
                return $theIcon . '<em>[pid: ' . $pageRecord['uid'] . ']</em>';
        }
-}
\ No newline at end of file
+
+}
index ba16581..29ebb4e 100644 (file)
@@ -20,6 +20,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Be;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
@@ -47,7 +48,7 @@ class PagePathViewHelper extends AbstractBackendViewHelper implements Compilable
         * @see \TYPO3\CMS\Backend\Template\DocumentTemplate::getPagePath() Note: can't call this method as it's protected!
         */
        public function render() {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
@@ -83,4 +84,5 @@ class PagePathViewHelper extends AbstractBackendViewHelper implements Compilable
                $pagePath .= '</span>';
                return $pagePath;
        }
+
 }
index 08e9254..a234aef 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
@@ -33,7 +34,7 @@ class CaseViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @api
         */
        public function render($value = NULL, $default = FALSE) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'value' => $value,
                                'default' => $default
@@ -78,4 +79,5 @@ class CaseViewHelper extends AbstractViewHelper implements CompilableInterface {
 
                return '';
        }
+
 }
index c458955..8cba386 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
@@ -52,7 +53,7 @@ class CountViewHelper extends AbstractViewHelper implements CompilableInterface
         * @api
         */
        public function render($subject = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array('subject' => $subject),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
index 2380e8e..34b835b 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers;
  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General      *
  * Public License for more details.                                       *
  *                                                                        */
+
 use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
@@ -52,7 +53,7 @@ class DebugViewHelper extends AbstractViewHelper implements CompilableInterface
         * @return string
         */
        public function render($title = NULL, $maxDepth = 8, $plainText = FALSE, $ansiColors = FALSE, $inline = FALSE, $blacklistedClassNames = NULL, $blacklistedPropertyNames = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'title' => $title,
                                'maxDepth' => $maxDepth,
@@ -77,4 +78,5 @@ class DebugViewHelper extends AbstractViewHelper implements CompilableInterface
        static public function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) {
                return DebuggerUtility::var_dump($renderChildrenClosure(), $arguments['title'], $arguments['maxDepth'], (bool)$arguments['plainText'], (bool)$arguments['ansiColors'], (bool)$arguments['inline'], $arguments['blacklistedClassNames'], $arguments['blacklistedPropertyNames']);
        }
+
 }
index b45b8df..1dc50bc 100644 (file)
@@ -42,7 +42,11 @@ class ElseViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @api
         */
        public function render() {
-               return self::renderStatic(array(), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index 2d2cc13..d84ad63 100644 (file)
@@ -72,7 +72,11 @@ class ForViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
         * @api
         */
        public function render($each, $as, $key = '', $reverse = FALSE, $iteration = NULL) {
-               return self::renderStatic($this->arguments, $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       $this->arguments,
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index f1dd72a..869b993 100644 (file)
@@ -56,7 +56,16 @@ class BytesViewHelper extends AbstractViewHelper implements CompilableInterface
         * @api
         */
        public function render($value = NULL, $decimals = 0, $decimalSeparator = '.', $thousandsSeparator = ',') {
-               return self::renderStatic(array('value' => $value, 'decimals' => $decimals, 'decimalSeparator' => $decimalSeparator, 'thousandsSeparator' => $thousandsSeparator), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'value' => $value,
+                               'decimals' => $decimals,
+                               'decimalSeparator' => $decimalSeparator,
+                               'thousandsSeparator' => $thousandsSeparator
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index 3af111f..ae21322 100644 (file)
@@ -103,7 +103,7 @@ class CaseViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @api
         */
        public function render($value = NULL, $mode = self::CASE_UPPER) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'value' => $value,
                                'mode' => $mode,
@@ -157,4 +157,4 @@ class CaseViewHelper extends AbstractViewHelper implements CompilableInterface {
                return $output;
        }
 
-}
\ No newline at end of file
+}
index 63cae2e..70ca7fc 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
@@ -60,7 +61,7 @@ class CdataViewHelper extends AbstractViewHelper implements CompilableInterface
         * @return string
         */
        public function render($value = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array('value' => $value),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
index 9fff2f3..7534038 100644 (file)
@@ -79,7 +79,7 @@ class CropViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @return string cropped text
         */
        public function render($maxCharacters, $append = '...', $respectWordBoundaries = TRUE, $respectHtml = TRUE) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'maxCharacters' => $maxCharacters,
                                'append' => $append,
index 15491ca..e5ca546 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
@@ -56,7 +57,7 @@ class CurrencyViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @api
         */
        public function render($currencySign = '', $decimalSeparator = ',', $thousandsSeparator = '.', $prependCurrency = FALSE, $separateCurrency = TRUE, $decimals = 2) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'currencySign' => $currencySign,
                                'decimalSeparator' => $decimalSeparator,
index 89a545e..e0817c8 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Core\Utility\MathUtility;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
@@ -89,7 +90,7 @@ class DateViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @api
         */
        public function render($date = NULL, $format = '') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'date' => $date,
                                'format' => $format
@@ -139,4 +140,5 @@ class DateViewHelper extends AbstractViewHelper implements CompilableInterface {
                        return $date->format($format);
                }
        }
+
 }
index 79d9a1c..f9c448a 100644 (file)
@@ -74,7 +74,7 @@ class HtmlViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @return string the parsed string.
         */
        public function render($parseFuncTSPath = 'lib.parseFunc_RTE') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'parseFuncTSPath' => $parseFuncTSPath,
                        ),
index 63c3eb8..0d7cc9f 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 
@@ -56,7 +57,7 @@ class HtmlentitiesDecodeViewHelper extends AbstractEncodingViewHelper implements
         * @api
         */
        public function render($value = NULL, $keepQuotes = FALSE, $encoding = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'value' => $value,
                                'keepQuotes' => $keepQuotes,
index 53805b3..b28ddc2 100644 (file)
@@ -47,7 +47,13 @@ class Nl2brViewHelper extends AbstractViewHelper implements CompilableInterface
         * @api
         */
        public function render($value = NULL) {
-               return self::renderStatic(array('value' => $value), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'value' => $value
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index 04d5f82..33c307b 100644 (file)
@@ -52,7 +52,7 @@ class NumberViewHelper extends AbstractViewHelper implements CompilableInterface
         * @api
         */
        public function render($decimals = 2, $decimalSeparator = '.', $thousandsSeparator = ',') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'decimals' => $decimals,
                                'decimalSeparator' => $decimalSeparator,
@@ -79,4 +79,5 @@ class NumberViewHelper extends AbstractViewHelper implements CompilableInterface
                $stringToFormat = $renderChildrenClosure();
                return number_format($stringToFormat, $decimals, $decimalSeparator, $thousandsSeparator);
        }
+
 }
index 028292b..9f7b453 100644 (file)
@@ -57,7 +57,16 @@ class PaddingViewHelper extends AbstractViewHelper implements CompilableInterfac
         * @api
         */
        public function render($padLength, $padString = ' ', $padType = 'right', $value = NULL) {
-               return self::renderStatic(array('padLength' => $padLength, 'padString' => $padString, 'padType' => $padType, 'value' => $value), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'padLength' => $padLength,
+                               'padString' => $padString,
+                               'padType' => $padType,
+                               'value' => $value
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index 8191496..92fb313 100644 (file)
@@ -63,7 +63,14 @@ class PrintfViewHelper extends AbstractViewHelper implements CompilableInterface
         * @api
         */
        public function render(array $arguments, $value = NULL) {
-               return self::renderStatic(array('arguments' => $arguments, 'value' => $value), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'arguments' => $arguments,
+                               'value' => $value
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index 4c44a52..3f3e4bf 100644 (file)
@@ -62,7 +62,13 @@ class RawViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @return string
         */
        public function render($value = NULL) {
-               return self::renderStatic(array('value' => $value), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'value' => $value
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index adc4158..81b9c36 100644 (file)
@@ -57,7 +57,13 @@ class StripTagsViewHelper extends AbstractViewHelper implements CompilableInterf
         * @api
         */
        public function render($value = NULL) {
-               return self::renderStatic(array('value' => $value), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(
+                               'value' => $value
+                       ),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index 1832d29..e45bad1 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
@@ -55,7 +56,7 @@ class UrlencodeViewHelper extends AbstractViewHelper implements CompilableInterf
         * @api
         */
        public function render($value = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'value' => $value
                        ),
@@ -82,4 +83,5 @@ class UrlencodeViewHelper extends AbstractViewHelper implements CompilableInterf
                }
                return rawurlencode($value);
        }
+
 }
index 0136b88..514d81d 100644 (file)
@@ -65,7 +65,7 @@ class TypolinkViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @return string
         */
        public function render($parameter, $target = '', $class = '', $title = '', $additionalParams = '', $additionalAttributes = array()) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'parameter' => $parameter,
                                'target' => $target,
@@ -186,4 +186,4 @@ class TypolinkViewHelper extends AbstractViewHelper implements CompilableInterfa
                return $typolinkConfiguration;
        }
 
-}
\ No newline at end of file
+}
index 51c004f..87426d5 100644 (file)
@@ -86,7 +86,7 @@ class RenderViewHelper extends AbstractViewHelper implements CompilableInterface
         * @api
         */
        public function render($section = NULL, $partial = NULL, $arguments = array(), $optional = FALSE) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'section' => $section,
                                'partial' => $partial,
index 7637299..3b05604 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler;
 use TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
@@ -76,7 +77,7 @@ class SwitchViewHelper extends AbstractViewHelper implements ChildNodeAccessInte
         * @api
         */
        public function render($expression) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'expression' => $expression
                        ),
@@ -119,4 +120,5 @@ class SwitchViewHelper extends AbstractViewHelper implements ChildNodeAccessInte
 
                return $result;
        }
+
 }
index 0d2b7b1..8ccdba5 100644 (file)
@@ -30,7 +30,11 @@ class ThenViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @api
         */
        public function render() {
-               return self::renderStatic(array(), $this->buildRenderChildrenClosure(), $this->renderingContext);
+               return static::renderStatic(
+                       array(),
+                       $this->buildRenderChildrenClosure(),
+                       $this->renderingContext
+               );
        }
 
        /**
index dde96d3..689ba85 100644 (file)
@@ -85,7 +85,7 @@ class TranslateViewHelper extends AbstractViewHelper implements CompilableInterf
         * @return string The translated key or tag body if key doesn't exist
         */
        public function render($key = NULL, $id = NULL, $default = NULL, $htmlEscape = NULL, array $arguments = NULL, $extensionName = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'key' => $key,
                                'id' => $id,
index 87e6544..656b38a 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Uri;
  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General      *
  * Public License for more details.                                       *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
@@ -38,7 +39,7 @@ class EmailViewHelper extends AbstractViewHelper implements CompilableInterface
         * @return string Rendered email link
         */
        public function render($email) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'email' => $email
                        ),
@@ -64,4 +65,5 @@ class EmailViewHelper extends AbstractViewHelper implements CompilableInterface
                        return 'mailto:' . $email;
                }
        }
+
 }
index e016b92..e3ca914 100644 (file)
@@ -10,6 +10,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Uri;
  *                                                                        *
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
@@ -45,7 +46,7 @@ class ExternalViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @api
         */
        public function render($uri, $defaultScheme = 'http') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'uri' => $uri,
                                'defaultScheme' => $defaultScheme
@@ -72,4 +73,5 @@ class ExternalViewHelper extends AbstractViewHelper implements CompilableInterfa
                }
                return $uri;
        }
+
 }
index 9b8b9f7..7fb9295 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Uri;
  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General      *
  * Public License for more details.                                       *
  *                                                                        */
+
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
 
@@ -62,7 +63,7 @@ class PageViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
         * @return string Rendered page URI
         */
        public function render($pageUid = NULL, array $additionalParams = array(), $pageType = 0, $noCache = FALSE, $noCacheHash = FALSE, $section = '', $linkAccessRestrictedPages = FALSE, $absolute = FALSE, $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array(), $addQueryStringMethod = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'pageUid' => $pageUid,
                                'additionalParams' => $additionalParams,
index 187ef73..b2895a9 100644 (file)
@@ -13,6 +13,7 @@ namespace TYPO3\CMS\Fluid\ViewHelpers\Uri;
  * TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General      *
  * Public License for more details.                                       *
  *                                                                        */
+
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
@@ -42,7 +43,7 @@ class ResourceViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHe
         * @api
         */
        public function render($path, $extensionName = NULL, $absolute = FALSE) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'path' => $path,
                                'extensionName' => $extensionName,
index db1c3fb..a07ced3 100644 (file)
@@ -56,7 +56,7 @@ class TypolinkViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @return string
         */
        public function render($parameter, $additionalParams = '') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'parameter' => $parameter,
                                'additionalParams' => $additionalParams
@@ -133,4 +133,5 @@ class TypolinkViewHelper extends AbstractViewHelper implements CompilableInterfa
                }
                return $typolinkConfiguration;
        }
+
 }
index 7a36896..3ec7775 100644 (file)
@@ -31,7 +31,7 @@ class DateTimeViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @return string
         */
        public function render() {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
index 735739c..a61ad90 100644 (file)
@@ -30,7 +30,7 @@ class FlagValueViewHelper extends AbstractViewHelper implements CompilableInterf
         * @return string
         */
        public function render($flags) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'flags' => $flags,
                        ),
index e3b3348..6d1ac6e 100644 (file)
@@ -30,7 +30,7 @@ class GroupListViewHelper extends AbstractViewHelper implements CompilableInterf
         * @return string
         */
        public function render(array $groups = array()) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'groups' => $groups,
                        ),
@@ -57,4 +57,4 @@ class GroupListViewHelper extends AbstractViewHelper implements CompilableInterf
                return htmlspecialchars(implode('|', $str));
        }
 
-}
\ No newline at end of file
+}
index d1331c9..7beefe3 100644 (file)
@@ -35,7 +35,7 @@ class PageBrowsingResultsViewHelper extends AbstractViewHelper implements Compil
         * @return string the content
         */
        public function render($numberOfResults, $resultsPerPage, $currentPage = 1) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'numberOfResults' => $numberOfResults,
                                'resultsPerPage' => $resultsPerPage,
index f60c19e..a7bd25a 100644 (file)
@@ -48,7 +48,7 @@ class PageBrowsingViewHelper extends AbstractViewHelper implements CompilableInt
         * @return string The content
         */
        public function render($maximumNumberOfResultPages, $numberOfResults, $resultsPerPage, $currentPage = 0, $freeIndexUid = NULL) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'maximumNumberOfResultPages' => $maximumNumberOfResultPages,
                                'numberOfResults' => $numberOfResults,
index b728e5f..a0d84f5 100644 (file)
@@ -32,7 +32,7 @@ class ConstantViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @return string Value of constant
         */
        public function render($name) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'name' => $name,
                        ),
index 75f0d0b..0767fcf 100644 (file)
@@ -42,7 +42,7 @@ class ExistsViewHelper extends AbstractViewHelper implements CompilableInterface
         * @return bool
         */
        public function render($file) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'file' => $file,
                        ),
index d2d9340..68c7bc4 100644 (file)
@@ -43,7 +43,7 @@ class ImageDimensionViewHelper extends AbstractViewHelper implements CompilableI
         * @return int width or height
         */
        public function render($dimension = 'width') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'dimension' => $dimension,
                        ),
index 477ae83..c3eeca2 100644 (file)
@@ -40,7 +40,7 @@ class RelativePathViewHelper extends AbstractViewHelper implements CompilableInt
         * @return string Relative path
         */
        public function render() {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
index b5aba8a..b11dec4 100644 (file)
@@ -43,7 +43,7 @@ class SizeViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @return int File size
         */
        public function render($format = TRUE) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'format' => $format,
                        ),
index de58134..6b3ec1b 100644 (file)
@@ -51,7 +51,7 @@ class CropViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @return string cropped text
         */
        public function render($maxCharacters) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'maxCharacters' => $maxCharacters,
                        ),
@@ -64,7 +64,7 @@ class CropViewHelper extends AbstractViewHelper implements CompilableInterface {
         * @param array $arguments
         * @param callable $renderChildrenClosure
         * @param RenderingContextInterface $renderingContext
-        *
+        * @throws \TYPO3\CMS\Install\ViewHelpers\Exception
         * @return string
         */
        static public function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) {
index ccbf1ed..5825753 100644 (file)
@@ -32,7 +32,7 @@ class ImageMagickCommandsViewHelper extends AbstractViewHelper implements Compil
         * @return string Formatted commands
         */
        public function render(array $commands = array()) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'commands' => $commands,
                        ),
index b675d2f..b8f4e41 100644 (file)
@@ -53,7 +53,7 @@ class PhpErrorCodeViewHelper extends AbstractViewHelper implements CompilableInt
         * @return string
         */
        public function render($phpErrorCode) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'phpErrorCode' => $phpErrorCode,
                        ),
index 4f9a82b..05128d9 100644 (file)
@@ -43,7 +43,7 @@ class ArrayValueByKeyViewHelper extends AbstractViewHelper implements Compilable
         * @return string
         */
        public function render(array $array, $key) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'array' => $array,
                                'key' => $key,
index d32e2d1..e93b79b 100644 (file)
@@ -40,7 +40,7 @@ class PhpInfoViewHelper extends AbstractViewHelper implements CompilableInterfac
         * @return string
         */
        public function render() {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(),
                        $this->buildRenderChildrenClosure(),
                        $this->renderingContext
@@ -102,4 +102,4 @@ class PhpInfoViewHelper extends AbstractViewHelper implements CompilableInterfac
                return str_replace(array('<font', '</font>'), array('<span', '</span>'), $html);
        }
 
-}
\ No newline at end of file
+}
index 294b431..7184906 100644 (file)
@@ -33,7 +33,7 @@ class IconViewHelper extends AbstractBackendViewHelper implements CompilableInte
         * @return string Content rendered image
         */
        public function render($icon, $title = '') {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'icon' => $icon,
                                'title' => $title,
index bdd8a75..a16a5dd 100644 (file)
@@ -34,7 +34,7 @@ class ModuleLinkViewHelper extends AbstractViewHelper implements CompilableInter
         * @return string
         */
        public function render($controller, $action, array $arguments = array()) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'controller' => $controller,
                                'action' => $action,
@@ -63,4 +63,4 @@ class ModuleLinkViewHelper extends AbstractViewHelper implements CompilableInter
                return BackendUtility::getModuleUrl('system_txschedulerM1', $moduleArguments);
        }
 
-}
\ No newline at end of file
+}
index bd80891..66a3099 100644 (file)
@@ -34,7 +34,7 @@ class DeleteLinkViewHelper extends AbstractViewHelper implements CompilableInter
         * @return string link
         */
        public function render($id) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'id' => $id
                        ),
index 8a2deef..05a7669 100644 (file)
@@ -33,7 +33,7 @@ class EditLinkViewHelper extends AbstractViewHelper implements CompilableInterfa
         * @return string
         */
        public function render($id) {
-               return self::renderStatic(
+               return static::renderStatic(
                        array(
                                'id' => $id
                        ),