Name

menu_get_handler — get the webapps name to handle a datatype

Synopsis

use Wacs;
use Wacs::WacsUI;
scalar menu_get_handler(...); 
 

Parameters

parameterdescription
forThe type of data this is a handler for; usually this will be the table name, eg models but it can be any arbitary name.
optionsThis is the primary key to be passed to the application specified in the lookup.

Summary

The menu_get_handler function is there primarily to let you find the applications that mesh best with the menu tree currently being used. You pass to the function the table or activity name and the primary key (or other lookup parameter) and it will return the preferred application to handle that type of link for this menu/look and feel in use. If the menu configuration file does not include a specification of the handler for any of the standard database tables, the default Wacs application will be given as the reply. A null reply will be indicated by a single character reply of just the hash character.

Some Common Names
mainmenu
models
photographer
preferences
slideshow

Availability

menu_get_handler is available from Wacs 0.8.5 onwards in both perl and php. It was not available prior to this release.