Copyright © 2009-2015 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
event/2 | |
get_menu/1 | Fetch the default menu. |
get_menu/2 | Fetch a menu structure from a rsc. |
init/1 | Initializes the module (after the datamodel is installed). |
manage_schema/2 | The datamodel for the menu routines. |
menu_flat/2 | Flatten the menu structure in a list, used for display purposes in templates. |
menu_flat/3 | |
menu_subtree/3 | Find the subtree below a resource id. |
menu_subtree/4 | |
observe_admin_menu/3 | |
observe_menu_get_rsc_ids/2 | Notifier handler to get all menu ids for the default menu. |
observe_menu_save/2 | Observer the 'menu_save' notification. |
remove_invisible/2 | |
set_menu/3 | Save the current menu. |
event(Postback_notify, Context) -> any()
get_menu(Context) -> list()
Fetch the default menu. Performs validation/visibility checking on the menu items.
get_menu(Id, Context) -> list()
Fetch a menu structure from a rsc. Performs validation/visibility checking on the menu items.
init(Context) -> any()
Initializes the module (after the datamodel is installed).
manage_schema(Version, Context) -> any()
The datamodel for the menu routines.
menu_flat(Menu::list() | undefined | <<>>, Context::z:context()) -> [{integer() | undefined, LevelIndex::[integer()] | undefined, up | down | undefined}]
Flatten the menu structure in a list, used for display purposes in templates
menu_flat(Menu::list() | undefined | <<>>, MaxDepth::integer(), Context::z:context()) -> [{integer() | undefined, LevelIndex::[integer()] | undefined, up | down | undefined}]
menu_subtree(Menu::list(), PageId::term(), Context::#context{}) -> list() | undefined
Find the subtree below a resource id. 'undefined' when not found.
menu_subtree(Menu::list(), PageId::term(), AddSiblings::boolean(), Context::#context{}) -> list() | undefined
observe_admin_menu(Admin_menu, Acc, Context) -> any()
observe_menu_get_rsc_ids(X1, Context) -> any()
Notifier handler to get all menu ids for the default menu.
observe_menu_save(Menu_save, Context) -> any()
Observer the 'menu_save' notification
remove_invisible(Menu, Context) -> any()
set_menu(Id, Menu, Context) -> any()
Save the current menu.
Generated by EDoc