From: Chuck Hagenbuch Date: Sat, 30 May 2009 15:36:37 +0000 (-0400) Subject: return the helper object added in addHelper() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=14b90d82a15269a7030ab4e061c8293097fa6dcb;p=horde.git return the helper object added in addHelper() --- diff --git a/framework/View/lib/Horde/View/Base.php b/framework/View/lib/Horde/View/Base.php index 994d1d187..efe60c831 100644 --- a/framework/View/lib/Horde/View/Base.php +++ b/framework/View/lib/Horde/View/Base.php @@ -188,6 +188,8 @@ abstract class Horde_View_Base * $v->addHelper('Tag'); // Adds a new Horde_View_Helper_Tag to the view * $v->addHelper('AppHelper'); // Adds a new AppHelper object to the view if * // it exists, otherwise throws an exception. + * + * @return Horde_View_Helper Returns the helper object that was added. */ public function addHelper($helper) { @@ -211,6 +213,8 @@ abstract class Horde_View_Base } $this->_helpers[$method] = $helper; } + + return $helper; } /**