From c26b3f7cc82f935f0fb5c1e12e63fc2719886397 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Mon, 20 Jun 2011 22:03:50 +0200 Subject: Add setText() method to ElggMenuItem class. Fixes #3546. --- engine/classes/ElggMenuItem.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'engine/classes') 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 -- cgit v1.2.3 From 7f1df879c1e083575baa890edd07f7f2f1469f67 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Tue, 21 Jun 2011 01:00:49 -0700 Subject: Fix dumb typos from last commit. --- engine/classes/ElggMenuItem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engine/classes') diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index caab2223d..10146899e 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -155,16 +155,16 @@ class ElggMenuItem { } /** - * Set the display text of the menu + * Set the display text of the menu item * - * @return string + * @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 */ -- cgit v1.2.3 From a76b2261206e097f091bf75ff679f2f33c55232b Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Tue, 21 Jun 2011 11:36:05 -0700 Subject: Add param description to PHPDoc comments of setText() function. --- engine/classes/ElggMenuItem.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engine/classes') diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index 10146899e..47d1e8374 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -157,6 +157,8 @@ class ElggMenuItem { /** * Set the display text of the menu item * + * @param string $text The display text + * * @return void */ public function setText($text) { -- cgit v1.2.3