diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 22:29:19 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 22:29:19 +0000 |
commit | 02d310ab9a84f1e994639d096708546318197b96 (patch) | |
tree | 01060ef8c843fd533fa2a223d0de795900e11521 /engine/classes/ElggMenuItem.php | |
parent | a1332ae971af685ceb2ca12610c69e92e81bfeff (diff) | |
download | elgg-02d310ab9a84f1e994639d096708546318197b96.tar.gz elgg-02d310ab9a84f1e994639d096708546318197b96.tar.bz2 |
Fixes #3031 using 'priority' now
git-svn-id: http://code.elgg.org/elgg/trunk@8545 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggMenuItem.php')
-rw-r--r-- | engine/classes/ElggMenuItem.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php index 1e1981ab9..0204a85c7 100644 --- a/engine/classes/ElggMenuItem.php +++ b/engine/classes/ElggMenuItem.php @@ -49,9 +49,9 @@ class ElggMenuItem { protected $title = ''; /** - * @var int Menu weight - smaller weights float to the top + * @var int Menu priority - smaller prioritys float to the top */ - protected $weight = 100; + protected $priority = 100; /** * @var bool Is this the currently selected menu item @@ -297,23 +297,23 @@ class ElggMenuItem { } /** - * Set the weight of the menu item + * Set the priority of the menu item * - * @param int $weight The lower weight items float to the top of the menu + * @param int $priority The smaller numbers mean higher priority (1 before 100) * * @return void */ - public function setWeight($weight) { - $this->weight = $weight; + public function setWeight($priority) { + $this->priority = $priority; } /** - * Get the weight of the menu item + * Get the priority of the menu item * * @return int */ public function getWeight() { - return $this->weight; + return $this->priority; } /** |