Class

MenuService

Package: phpboost Author: Loic Rouchon <loic.rouchon@phpboost.com> Desc: This service manage kernel menus by adding the persistance to menus objects. It also provides all moving and disabling methods to change the website appearance. Located at phpboost/menu/MenuService.class.php
Methods summary
public static
# __static( )
public static Menu[]
# get_menu_list( mixed $class = Menu::MENU__CLASS, mixed $block = Menu::BLOCK_POSITION__ALL, mixed $enabled = Menu::MENU_ENABLE_OR_NOT )
public static unknown_type
# get_menus_map( )
public static Menu
# load( integer $id )
public static boolean
# save( Menu $menu )
public static
# delete( mixed $menu )
public static
# enable( Menu $menu )
public static
# disable( Menu $menu )
public static
# move( Menu $menu, integer $block, integer $position = 0, boolean $save = true )
public static
# set_position( Menu $menu, integer $block_position )
public static
# change_position( Menu $menu, integer $direction = MenuService::MOVE_UP )
public static
# enable_all( boolean $enable = true )
public static
# generate_cache( )
public static boolean
# add_mini_module( string $module_id, mixed $generate_cache = true )
public static
# delete_mini_module( string $module )
public static
# update_mini_modules_list( boolean $update_cache = true )
public static
# delete_module_feeds_menus( string $module_id )
public static LinksMenu
# website_modules( integer $menu_type = LinksMenu::AUTOMATIC_MENU )
public static
# assign_positions_conditions( Template $template, integer $position )
public static integer
# str_to_location( string $str_location )
Constants summary
integer MOVE_UP -1
#
integer MOVE_DOWN 1
#