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-16 19:53:04 -0500
commit515d5a9b4de70a02dad5c43dec64be282a769a2e (patch)
treef104565d7ab468009d3f0b1b1fa8ba09f0421f4a /engine/classes/ElggMenuItem.php
parent5ae9e93b57bdc6744198538153b84bed4a34e960 (diff)
downloadelgg-515d5a9b4de70a02dad5c43dec64be282a769a2e.tar.gz
elgg-515d5a9b4de70a02dad5c43dec64be282a769a2e.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