set_start_point($link): Search for menu item in database by link and use it as the root of the menu.
set_depth($depth): Set the depth of the sub-menus that will be added to the output.
set_user($user): Limit items in the menu to the ones accessible for the current user.
to_output($current_url = null): Add the menu to the output.
Example
<?php
# Code used in public/index.php:
$menu = new menu($_database, $_view);
if (is_true(MENU_PERSONALIZED)) {
$menu->set_user($_user);
}
$menu->to_output();
?>