From: Franz Liedke Date: Mon, 20 Jun 2011 20:03:50 +0000 (+0200) Subject: Add setText() method to ElggMenuItem class. Fixes #3546. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c26b3f7cc82f935f0fb5c1e12e63fc2719886397;p=lorea%2Felgg.git Add setText() method to ElggMenuItem class. Fixes #3546. --- 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