]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Add setText() method to ElggMenuItem class. Fixes #3546.
authorFranz Liedke <franz@develophp.org>
Mon, 20 Jun 2011 20:03:50 +0000 (22:03 +0200)
committerFranz Liedke <franz@develophp.org>
Mon, 20 Jun 2011 20:03:50 +0000 (22:03 +0200)
engine/classes/ElggMenuItem.php

index 157ed9ceb503098a6e6e4b206dc0f2991b9dd3c1..caab2223d2814221dec221d7c445b9ac2a829f1c 100644 (file)
@@ -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