]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added the missing set/get priority methods to ElggMenuItem
authorcash <cash.costello@gmail.com>
Mon, 14 Nov 2011 00:48:32 +0000 (19:48 -0500)
committercash <cash.costello@gmail.com>
Mon, 14 Nov 2011 00:48:32 +0000 (19:48 -0500)
engine/classes/ElggMenuItem.php

index 289919a8e146845ba991cabf4185030230cd477c..62547134adc73b615d5b2733e78b38dd68aa0c24 100644 (file)
@@ -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,11 +425,31 @@ 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
         *