Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ledgersmb::dbobject::menu(3pm) [debian man page]

LedgerSMB::DBObject::Menu(3pm)				User Contributed Perl Documentation			    LedgerSMB::DBObject::Menu(3pm)

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. perl v5.14.2 2012-03-25 LedgerSMB::DBObject::Menu(3pm)

Check Out this Related Man Page

LedgerSMB::DBObject(3pm)				User Contributed Perl Documentation				  LedgerSMB::DBObject(3pm)

NAME
LedgerSMB::DBObject - LedgerSMB class for building objects from db relations SYOPSIS
This module creates object instances based on LedgerSMB's in-database ORM. METHODS
new ($class, base => $LedgerSMB::hash) This is the base constructor for all child classes. It must be used with base argument because this is necessary for database connectivity and the like. Of course the base object can be any object that inherits LedgerSMB, so you can use any subclass of that. The per-session dbh is passed between the objects this way as is any information that is needed. exec_method ($self, procname => $function_name, [args => @args, schema => $schema, continue_on_error=>$continue_on_error]) Provides the basic mapping of parameters to the SQL stored procedure function arguments. If @args is not defined, args are mapped from the object's properties, stripping them of their in_ prefix. If schema is provided, that is used instead of PostgreSQL's search path. If continue_on_error is provided and true, the operation will not raise an exception in the event of a database error, and it will be up to the application to handle any exceptions. __validate__ is called on every new() invocation. It is blank in this module but can be overridden in decendant modules. _db_array_scalars(@elements) creates a db array from scalars. _db_array_literal(@elements) creates a multiple dimension db array from preparsed db arrays or other data which does not need to be escaped. set_ordering Sets the ordering used by default for specific functions called by exec_method run_custom_queries Backward-compatible with 1.2 custom query system for moving forward. Copyright (C) 2007, The LedgerSMB core team. This file is licensed under the Gnu General Public License version 2, or at your option any later version. A copy of the license should have been included with your software. perl v5.14.2 2011-12-10 LedgerSMB::DBObject(3pm)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Menu driven using Ksh

Hi Guys, I would like to know how to write Menu driven programs using ksh. I have several script files 1.sh 2.sh 3.sh ...so on 25 files I want to create a Menu which will calls submenus. Main Menu 1. Data Entry if you press 1 again submenu 1. Order entry ... (3 Replies)
Discussion started by: krishna
3 Replies

2. UNIX for Dummies Questions & Answers

Multiple for loops within a Menu?

I have program that I want to be able to use I guess you would call them functions.... to run muliple little programs or loops with one menu script. How would I do this. Here is some code I am using. Sorry about the formatting....it doesn't paste well. echo "*****************************... (3 Replies)
Discussion started by: darthur
3 Replies

3. UNIX for Dummies Questions & Answers

Information about users who have logged.

Hi, Suppose I have a programme called Menu. This menu has various choices as we would expect from a Menu. Now Can you Please help me as I want the details of the Users to be registered to some file , Whoever has entered this particular Program . Basically to see the username and the time that... (2 Replies)
Discussion started by: rooh
2 Replies

4. UNIX for Dummies Questions & Answers

Unix Menu program

I am tasked with creating a front end 'menu' program where the users will type '1' to do this command or '2' to do that command. I have found some stuff that I can copy to do that but it looks too flimsy to roll out in a production envirionment. I was wondering if you guys might know of a more... (4 Replies)
Discussion started by: hedrict
4 Replies

5. Shell Programming and Scripting

Menu script

It's me again :) I would like to create a script that will display a 'Main Menu' which will link to other scripts in the same directory. Is it possible to have a scrolling menu and pretty colours for this? :) (9 Replies)
Discussion started by: Ypnos
9 Replies

6. UNIX for Dummies Questions & Answers

Menu Script question

I am far from a unix script programmer .. Heres the problem .. I have a basic menu that calls functions.. One of the functions thats called invokes TCPDUMP The only way I know of to stop TCPDUMP is CTRL - C But of course when I do this it kills the script and takes me back out to the... (2 Replies)
Discussion started by: lanmanb4
2 Replies

7. UNIX for Advanced & Expert Users

Menu Driven UNIX Admin

I need to have a script that can do an automated IPL function (how to reboot the box). I think ‘reboot’ would do the trick. However, how would I go about doing it, for example if the user states from a menu script that I would like to reboot now. The problem is when I do the ‘reboot’ command I... (6 Replies)
Discussion started by: ad4m88
6 Replies

8. Shell Programming and Scripting

Menu Script

So, I need help writing a Menu script in UNIX. First how can I use letters for the options instead of numbers? Also, is there any templates out on the web I can use? (2 Replies)
Discussion started by: Gboy
2 Replies

9. Shell Programming and Scripting

Menu list in Unix csh - command not found

Hello, im taking a class of Unix and i dont really know much about it, im trying to create a list of menu a user would select from and im very lost. Basically it will have 5 options, the user will chose from: 1. list files in the pwd 2. display date and time 3. is the file file or directory 4.... (5 Replies)
Discussion started by: morava
5 Replies

10. Shell Programming and Scripting

Menu System

No longer need help! (3 Replies)
Discussion started by: john123
3 Replies

11. Ubuntu

Add Option To Right Menu

hey all, I already installed nautilus-actions now , I want to add "print path" script(option) to the right context menu!.. I did : http://img853.imageshack.us/img853/6973/59818245.png http://img847.imageshack.us/img847/8758/37217230.png the script print located in... (2 Replies)
Discussion started by: eawedat
2 Replies

12. UNIX for Dummies Questions & Answers

Returning to Menu automatically

I am trying to write a script where after choosing an option from the main menu the information from the option is displayed for 5 seconds and then the person is automatically returned to the main menu. I would really appreciate the help. Thanks! (4 Replies)
Discussion started by: Grimblegrumble
4 Replies

13. Shell Programming and Scripting

Menu with working functions

I am creating a menu currently that makes use of functions to complete each selected option but running into a bit of trouble calling them into action still fairly new with using functions correctly so any insight is appreciated. here is my code so far #!/bin/bash #Last updated on 05/14/14 ... (4 Replies)
Discussion started by: Backtickcruise
4 Replies

14. Shell Programming and Scripting

Need Menu option each on a new line

Here is my script for the menu options. # Bash Menu Script Example PS3='Please enter your choice: ' options=("Option 1:" "Option 2:" "Other Reason:" "Quit") select opt in "${options}" do case $opt in "Option 1 :") echo "you chose choice 1" ;; ... (3 Replies)
Discussion started by: mohtashims
3 Replies