---
name: "LedgerSMB::DBObject::Menu"
section: "3pm"
platform: "linux"
package: "ledgersmb"
version: "1.3.40-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/LedgerSMB::DBObject::Menu"
---

# LedgerSMB::DBObject::Menu(3pm)

Menu Handling Back-end Routines for LedgerSMB

## NAME

LedgerSMB::DBObject::Menu - Menu Handling Back-end Routines for LedgerSMB

## SYNOPSIS

Provides the functions for generating the data structures for the LedgerSMB menu.

## COPYRIGHT

Copyright (c) 2007 The LedgerSMB Core Team.  Licensed under the GNU General  Public License version 2 or at your option any later version.  Please see the included COPYRIGHT and LICENSE files for more information.

## METHODS

- *new()*

  Inherited from LedgerSMB::DBObject.  Please see that documnetation for details.

- *generate()*

  This function returns a list of menu items.  Each list item is a hashref: keys `%menu_item` would return the equivalent of qw(position id level label path  args).  Returns the complete list and sets `$menu`-\>{menu\_items} to a referene to  th result set, This function does not return an entry for the top-level menu.

- *generate\_section()*

  This class acts like Menu::Generate except it returns only a cross-section of  the menu.  Basically it returns all nodes which are direct children below `$object`-\>{parent\_id}.

- *will\_expire\_soon()*

  This method returns true if the user's password will expire soon  (within the next week).

## Copyright (C) 2007 The LedgerSMB Core Team

Licensed under the GNU General Public License version 2 or later (at your  option).  For more information please see the included LICENSE and COPYRIGHT  files.
