Request a Demo
  • Platform
    • Donations
    • Campaigns
    • Events
    • eCards
    • CRM
  • Features
  • Integrations
  • Resources
    • Docs
    • Product updates
    • Changelog
  • Company
  • Platform
    • Donations
    • Campaigns
    • Events
    • eCards
    • CRM
  • Features
  • Integrations
  • Resources
    • Docs
    • Product updates
    • Changelog
  • Company
Request a Demo

Classes

  • Helpers/AdminMenuHelper
  • Helpers/API
  • Helpers/Helper
View Categories

Helpers/AdminMenuHelper

1 min read

Namespace #

LevCharity\Helpers\ClassName

Overview #

The class description


Properties #

NameTypeVisibilityUsageDescription
$current_itemsstring[]privatestaticThe 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:

NameTypeDefaultDescription
$header_dataarrayThe 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:

NameTypeDefaultDescription
$menuarrayThe menu that need to be rendered.
$levelint0The level of the current call
$currents_listarray[]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:

NameTypeDefaultDescription
$page?stringnullNot 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.

Was this article helpful?
Still stuck? How can we help?

How can we help?

Updated on March 26, 2025
Helpers/API
Table of Contents
  • Namespace
  • Overview
  • Properties
  • Methods
    • menu
    • renderMenu
    • breadcrumbs
Join our newsletter

Add your email to stay up to date on features and new releases:

loader

  • Docs
  • Changelog
  • Privacy Policy
  • Terms of Service
  • Cookies Settings
  • Docs
  • Changelog
  • Privacy Policy
  • Terms of Service
  • Cookies Settings