[icinga-checkins] icinga.org: icingaweb2/master: Remove the Help decorator

git at icinga.org git at icinga.org
Thu Nov 20 13:50:47 CET 2014


Module: icingaweb2
Branch: master
Commit: 99ad72a0da7694c4a083c6f43181b788d61e9051
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=99ad72a0da7694c4a083c6f43181b788d61e9051

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Thu Nov 20 13:50:40 2014 +0100

Remove the Help decorator

---

 library/Icinga/Web/Form/Decorator/Help.php |   33 ----------------------------
 1 file changed, 33 deletions(-)

diff --git a/library/Icinga/Web/Form/Decorator/Help.php b/library/Icinga/Web/Form/Decorator/Help.php
deleted file mode 100644
index 1f8df2c..0000000
--- a/library/Icinga/Web/Form/Decorator/Help.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-// {{{ICINGA_LICENSE_HEADER}}}
-// {{{ICINGA_LICENSE_HEADER}}}
-
-namespace Icinga\Web\Form\Decorator;
-
-use Icinga\Application\Icinga;
-use Zend_Form_Decorator_Abstract;
-
-/**
- * A decorator that will display the description as a help icon
- */
-class Help extends Zend_Form_Decorator_Abstract
-{
-    /**
-     * Render a description and show it as a help icon
-     *
-     * @param  string $content
-     * @return string
-     */
-    public function render($content = '')
-    {
-        $element = $this->getElement();
-        $description = $element->getView()->escape($element->getDescription());
-
-        if (! empty($description)) {
-            $helpIcon = Icinga::app()->getViewRenderer()->view->icon('help', $description);
-            return $helpIcon . $content;
-        }
-
-        return  $content;
-    }
-}



More information about the icinga-checkins mailing list