Namespace #
LevCharity\Helpers\ClassName
Overview #
The class description
Properties #
Name | Type | Visibility | Usage | Description |
---|---|---|---|---|
$current_items | string[] | private | static | The list of items on the current menu page. Used to cache the list of found items to avoid no-needle loops |
Methods #
menu #
The method that renders the Admin menu.
Returns: void
Visibility: public
Usage: static
Properties:
Name | Type | Default | Description |
---|---|---|---|
$header_data | array | The data from getHeaderData method. |
Examples:
<?php
use LevCharity\Helpers\AdminMenuHelper;
$header_data = AdminMenuHelper::getHeaderData()
?>
<div class="header">
<?php AdminMenuHelper::menu(header_data) ?>
</div>
renderMenu #
The method that renders the Admin menu in recursive strategy.
Returns: void
Visibility: public
Usage: static
Properties:
Name | Type | Default | Description |
---|---|---|---|
$menu | array | The menu that need to be rendered. | |
$level | int | 0 | The level of the current call |
$currents_list | array | [] | The menu items that need to be highlighted |
breadcrumbs #
The method to render the admin page breadcrumbs. It uses the same defined menu as a reference which is used for the Header
Returns: void
Visibility: public
Usage: static
Properties:
Name | Type | Default | Description |
---|---|---|---|
$page | ?string | null | Not required param, you can pass the page param that will be used to customize the menu that will be used or you can leave it and it will pass from url get page param |
Here must be methods that have not been added to this doc yet.