aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggMenuBuilder.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-08 17:48:29 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-08 17:48:29 -0500
commitb2bcd510b040b6d065a3a6ad5a4ea36e43db0446 (patch)
tree6a6eaae7e7d29d0b61f8ae43572f8b87b52161b2 /engine/classes/ElggMenuBuilder.php
parent4f4f5a8be736c36ca8af0cd65731dd7c64da3b1a (diff)
downloadelgg-b2bcd510b040b6d065a3a6ad5a4ea36e43db0446.tar.gz
elgg-b2bcd510b040b6d065a3a6ad5a4ea36e43db0446.tar.bz2
coding standards fixes - comments
Diffstat (limited to 'engine/classes/ElggMenuBuilder.php')
-rw-r--r--engine/classes/ElggMenuBuilder.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/classes/ElggMenuBuilder.php b/engine/classes/ElggMenuBuilder.php
index cadfee7f5..6f4ac702e 100644
--- a/engine/classes/ElggMenuBuilder.php
+++ b/engine/classes/ElggMenuBuilder.php
@@ -16,16 +16,16 @@ class ElggMenuBuilder {
/**
* ElggMenuBuilder constructor
*
- * @param string $name Identifier of the menu
+ * @param array $menu Array of ElggMenuItem objects
*/
- public function __construct($menu) {
+ public function __construct(array $menu) {
$this->menu = $menu;
}
/**
* Get a prepared menu array
*
- * @param mixed $sort_by
+ * @param mixed $sort_by Method to sort the menu by. @see ElggMenuBuilder::sort()
* @return array
*/
public function getMenu($sort_by = 'text') {
@@ -80,6 +80,7 @@ class ElggMenuBuilder {
/**
* Group the menu items into sections
+ *
* @return void
*/
protected function setupSections() {