[TASK] Removes beuser/SectionViewHelper 30/39230/3
authorJan Helke <typo3@helke.de>
Sun, 3 May 2015 09:12:52 +0000 (11:12 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Sun, 3 May 2015 09:47:16 +0000 (11:47 +0200)
As this ViewHelper is not needed anymore, no need to refactor.

Resolves: #66770
Releases: master
Change-Id: I3a797c330388dea0360ef369cce7a7281ea97ac6
Reviewed-on: http://review.typo3.org/39230
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/beuser/Classes/ViewHelpers/SectionViewHelper.php [deleted file]

diff --git a/typo3/sysext/beuser/Classes/ViewHelpers/SectionViewHelper.php b/typo3/sysext/beuser/Classes/ViewHelpers/SectionViewHelper.php
deleted file mode 100644 (file)
index 43696a8..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-namespace TYPO3\CMS\Beuser\ViewHelpers;
-
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * Displays a section in backend module template, similar to \TYPO3\CMS\Backend\Template\DocumentTemplate::section()
- *
- * @author Felix Kopp <felix-source@phorax.com>
- * @internal
- */
-class SectionViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
-
-       /**
-        * Display section with title and content
-        *
-        * @param string $title
-        * @param bool $collapsible
-        *
-        * @return string
-        * @see \TYPO3\CMS\Backend\Template\DocumentTemplate::section()
-        */
-       public function render($title, $collapsible = FALSE) {
-               if ($collapsible) {
-                       $uniqueId = 'section_' . md5((microtime() . rand()));
-                       return '<h3 class="collapsibleSection"><a href="#" onClick="$(\'' . $uniqueId . '\').toggle(); return false;">' . $title . '</a></h3>' . '<div id="' . $uniqueId . '" class="collapsibleSection">' . $this->renderChildren() . '</div>';
-               }
-               return '<h2>' . $title . '</h2>' . $this->renderChildren();
-       }
-
-}