diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-06-22 04:37:12 -0700 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-06-22 04:37:12 -0700 |
commit | 02d0d33657421e9ce6a03168fe1c96ce143e374c (patch) | |
tree | 1e58e9eea68426e1323269e661693c7fd414cb5c /engine/classes/ElggMenuItem.php | |
parent | 2ca57a9822765ca0d8504d736b677ad6af22c61b (diff) | |
parent | a76b2261206e097f091bf75ff679f2f33c55232b (diff) | |
download | elgg-02d0d33657421e9ce6a03168fe1c96ce143e374c.tar.gz elgg-02d0d33657421e9ce6a03168fe1c96ce143e374c.tar.bz2 |
Merge pull request #44 from lie2815/3546-menu-item-edit-text
Fixes #3546 Add setText() method to ElggMenuItem class
Diffstat (limited to 'engine/classes/ElggMenuItem.php')
-rw-r--r-- | engine/classes/ElggMenuItem.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index d76518be2..cd6267ad6 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -153,9 +153,20 @@ class ElggMenuItem { public function getName() { return $this->name; } + + /** + * Set the display text of the menu item + * + * @param string $text The display text + * + * @return void + */ + public function setText($text) { + $this->text = $text; + } /** - * Get the display text of the menu + * Get the display text of the menu item * * @return string */ |