aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggMenuItem.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-11-13 19:48:32 -0500
committercash <cash.costello@gmail.com>2011-11-13 19:48:32 -0500
commit2694d74593644af64737a41d32cc6191265fc02b (patch)
tree2e031a3cf1833a8693b1400ea7a2c4cdc39faafc /engine/classes/ElggMenuItem.php
parent6483d9d446e7fa50e16823fe20514a45416880e2 (diff)
downloadelgg-2694d74593644af64737a41d32cc6191265fc02b.tar.gz
elgg-2694d74593644af64737a41d32cc6191265fc02b.tar.bz2
added the missing set/get priority methods to ElggMenuItem
Diffstat (limited to 'engine/classes/ElggMenuItem.php')
-rw-r--r--engine/classes/ElggMenuItem.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/engine/classes/ElggMenuItem.php b/engine/classes/ElggMenuItem.php
index 289919a8e..62547134a 100644
--- a/engine/classes/ElggMenuItem.php
+++ b/engine/classes/ElggMenuItem.php
@@ -415,6 +415,7 @@ class ElggMenuItem {
*
* @param int $priority The smaller numbers mean higher priority (1 before 100)
* @return void
+ * @deprecated
*/
public function setWeight($priority) {
$this->data['priority'] = $priority;
@@ -424,12 +425,32 @@ class ElggMenuItem {
* Get the priority of the menu item
*
* @return int
+ * @deprecated
*/
public function getWeight() {
return $this->data['priority'];
}
/**
+ * Set the priority of the menu item
+ *
+ * @param int $priority The smaller numbers mean higher priority (1 before 100)
+ * @return void
+ */
+ public function setPriority($priority) {
+ $this->data['priority'] = $priority;
+ }
+
+ /**
+ * Get the priority of the menu item
+ *
+ * @return int
+ */
+ public function getPriority() {
+ return $this->data['priority'];
+ }
+
+ /**
* Set the section identifier
*
* @param string $section The identifier of the section