Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Menu
MenuSection.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Menu
;
4
5
use
Elgg\Collections\CollectionItemInterface
;
6
10
class
MenuSection
extends
MenuItems
implements
CollectionItemInterface
{
11
15
protected
$id
;
16
20
protected
$priority
;
21
29
public
function
setId
(
$id
) {
30
$this->
id
=
$id
;
31
}
32
38
public
function
getID
() {
39
return
$this->id
;
40
}
41
49
public
function
setPriority
(
$priority
) {
50
$this->priority =
$priority
;
51
}
52
58
public
function
getPriority
() {
59
return
$this->priority
;
60
}
61
69
public
function
getItem
($item_name) {
70
return
$this->
get
($item_name);
71
}
72
78
public
function
getItems
() {
79
return
$this->
all
();
80
}
81
}
Elgg\Menu\MenuSection
Menu section.
Definition:
MenuSection.php:10
Elgg\Menu\MenuSection\setId
setId($id)
Set ID.
Definition:
MenuSection.php:29
Elgg\Menu\MenuSection\$priority
$priority
Definition:
MenuSection.php:20
Elgg\Collections\CollectionItemInterface
Collection item interface.
Definition:
CollectionItemInterface.php:8
Elgg\Menu\MenuSection\getID
getID()
Get unique item identifier within a collection.
Definition:
MenuSection.php:38
Elgg\Menu
Definition:
Menu.php:3
Elgg\Menu\MenuSection\$id
$id
Definition:
MenuSection.php:15
Elgg\Menu\MenuSection\getItems
getItems()
Get menu items.
Definition:
MenuSection.php:78
Elgg\Menu\MenuSection\getPriority
getPriority()
Get priority (weight) of the item within a collection.
Definition:
MenuSection.php:58
CollectionItemInterface
Elgg\Collections\Collection\all
all()
{Returns all collection items by reference.CollectionItemInterface[]}
Definition:
Collection.php:71
Elgg\Menu\MenuSection\setPriority
setPriority($priority)
Set section priority.
Definition:
MenuSection.php:49
Elgg\Menu\MenuItems
A collection of menu items.
Definition:
MenuItems.php:10
Elgg\Menu\MenuSection\getItem
getItem($item_name)
Get menu item by name.
Definition:
MenuSection.php:69
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11