aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggMenuItem.php
diff options
context:
space:
mode:
authorFranz Liedke <franz@develophp.org>2011-06-20 22:03:50 +0200
committerFranz Liedke <franz@develophp.org>2011-06-20 22:03:50 +0200
commitc26b3f7cc82f935f0fb5c1e12e63fc2719886397 (patch)
tree51558cde9be81761a4968bab0579b6e74b03491b /engine/classes/ElggMenuItem.php
parent8edfc55bc7ee99955b3c82a59312df8c9d840bb7 (diff)
downloadelgg-c26b3f7cc82f935f0fb5c1e12e63fc2719886397.tar.gz
elgg-c26b3f7cc82f935f0fb5c1e12e63fc2719886397.tar.bz2
Add setText() method to ElggMenuItem class. Fixes #3546.
Diffstat (limited to 'engine/classes/ElggMenuItem.php')
-rw-r--r--engine/classes/ElggMenuItem.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index 157ed9ceb..caab2223d 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -153,6 +153,15 @@ class ElggMenuItem {
public function getName() {
return $this->name;
}
+
+ /**
+ * Set the display text of the menu
+ *
+ * @return string
+ */
+ public function setText($text) {
+ $this->text = $text;
+ }
/**
* Get the display text of the menu