A complete menu, sorted, filtered by the "prepare" event, and split into sections.  
 More...
A complete menu, sorted, filtered by the "prepare" event, and split into sections. 
This also encapsulates parameters to be passed to views. 
- Examples
- /root/Elgg/engine/lib/views.php.
Definition at line 10 of file Menu.php.
◆ __construct()
      
        
          | Elgg\Menu\Menu::__construct | ( | protected array | $params | ) |  | 
      
 
Constructor. 
- Parameters
- 
  
    | array | $params | Params. Must include: "name" menu name "menu" array of sections (each an array of items) |  
 
Definition at line 19 of file Menu.php.
 
 
◆ getName()
      
        
          | Elgg\Menu\Menu::getName | ( |  | ) |  | 
      
 
Get the menu's name. 
- Returns
- string 
Definition at line 48 of file Menu.php.
 
 
◆ getParams()
      
        
          | Elgg\Menu\Menu::getParams | ( |  | ) |  | 
      
 
Get the menu parameters. 
- Returns
- array 
Definition at line 57 of file Menu.php.
 
 
◆ getSection()
      
        
          | Elgg\Menu\Menu::getSection | ( |  | $name, | 
        
          |  |  |  | $default = null | 
        
          |  | ) |  |  | 
      
 
Get a single menu section. 
- Parameters
- 
  
    | string | $name | Section name |  | mixed | $default | Value to return if section is not found |  
 
- Returns
- MenuSection|null 
Definition at line 39 of file Menu.php.
 
 
◆ getSections()
      
        
          | Elgg\Menu\Menu::getSections | ( |  | ) |  | 
      
 
 
The documentation for this class was generated from the following file: