Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Menu
Menu.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Menu
;
4
10
class
Menu
{
11
19
public
function
__construct
(
protected
array
$params
) {
20
}
21
27
public
function
getSections
() {
28
return
$this->params[
'menu'
];
29
}
30
39
public
function
getSection
(
$name
,
$default
= null) {
40
return
$this->params[
'menu'
][
$name
] ??
$default
;
41
}
42
48
public
function
getName
() {
49
return
$this->params[
'name'
];
50
}
51
57
public
function
getParams
() {
58
return
$this->params
;
59
}
60
}
$default
$default
Definition:
checkbox.php:30
$params
$params
Saves global plugin settings.
Definition:
save.php:13
Elgg\Menu\Menu\getParams
getParams()
Get the menu parameters.
Definition:
Menu.php:57
Elgg\Menu\Menu\getName
getName()
Get the menu's name.
Definition:
Menu.php:48
Elgg\Menu\Menu\getSection
getSection($name, $default=null)
Get a single menu section.
Definition:
Menu.php:39
$name
if(!$user||!$user->canDelete()) $name
Definition:
delete.php:22
Elgg\Menu
Definition:
Menu.php:3
Elgg\Menu\Menu\__construct
__construct(protected array $params)
Constructor.
Definition:
Menu.php:19
Elgg\Menu\Menu\getSections
getSections()
Get all menu sections.
Definition:
Menu.php:27
Elgg\Menu\Menu
A complete menu, sorted, filtered by the "prepare" event, and split into sections.
Definition:
Menu.php:10
Generated on Wed Dec 4 2024 00:00:21 for Elgg by
1.8.11