projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20110aa
)
return the helper object added in addHelper()
author
Chuck Hagenbuch
<chuck@horde.org>
Sat, 30 May 2009 15:36:37 +0000
(11:36 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Sat, 30 May 2009 15:36:37 +0000
(11:36 -0400)
framework/View/lib/Horde/View/Base.php
patch
|
blob
|
history
diff --git
a/framework/View/lib/Horde/View/Base.php
b/framework/View/lib/Horde/View/Base.php
index
994d1d1
..
efe60c8
100644
(file)
--- 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;
}
/**