Public Member Functions | |
| Diogenes_Barrel_Menu (&$dbh, $table_menu) | |
| deleteEntry ($MID, $parent, &$caller) | |
| makeMenu ($PID, $min_level, $pid_to_url) | |
| maxChildIndex ($parent) | |
| menuToRoot ($mcache, $MID, $path) | |
| menuRecurse ($mcache, $MIDpere, $filiation, $level, $min_level, $pid_to_url) | |
| menuRead () | |
| swapEntries ($parent, $a, $b) | |
| writeEntry ($mid, $props) | |
Public Attributes | |
| $dbh | |
| $table_menu | |
Definition at line 24 of file Menu.php.
| Diogenes_Barrel_Menu::Diogenes_Barrel_Menu | ( | &$ | dbh, | |
| $ | table_menu | |||
| ) |
Constructs a Smarty-derived object to display contents within a barrel.
| $override_pathinfo |
Definition at line 36 of file Menu.php.
References $dbh, and $table_menu.
| Diogenes_Barrel_Menu::deleteEntry | ( | $ | MID, | |
| $ | parent, | |||
| &$ | caller | |||
| ) |
| Diogenes_Barrel_Menu::makeMenu | ( | $ | PID, | |
| $ | min_level, | |||
| $ | pid_to_url | |||
| ) |
Build the user-defined part of the menu.
| $PID | ||
| $pid_to_url |
Definition at line 74 of file Menu.php.
References menuRead(), menuRecurse(), and menuToRoot().
Here is the call graph for this function:

| Diogenes_Barrel_Menu::maxChildIndex | ( | $ | parent | ) |
Return the maximum index for children of a given entry.
| $parent |
Definition at line 98 of file Menu.php.
Referenced by writeEntry().
| Diogenes_Barrel_Menu::menuToRoot | ( | $ | mcache, | |
| $ | MID, | |||
| $ | path | |||
| ) |
Return the filiation to get to the root element.
| mcache | ||
| MID | ||
| path |
Definition at line 113 of file Menu.php.
Referenced by makeMenu().
| Diogenes_Barrel_Menu::menuRecurse | ( | $ | mcache, | |
| $ | MIDpere, | |||
| $ | filiation, | |||
| $ | level, | |||
| $ | min_level, | |||
| $ | pid_to_url | |||
| ) |
Recursively add menu entries
| mcache | ||
| MIDpere | ||
| filiation | ||
| level | ||
| min_level | ||
| pid_to_url |
Definition at line 136 of file Menu.php.
Referenced by makeMenu().
| Diogenes_Barrel_Menu::menuRead | ( | ) |
Read this barrel's menu entries from database.
Definition at line 165 of file Menu.php.
Referenced by makeMenu().
| Diogenes_Barrel_Menu::swapEntries | ( | $ | parent, | |
| $ | a, | |||
| $ | b | |||
| ) |
| Diogenes_Barrel_Menu::writeEntry | ( | $ | mid, | |
| $ | props | |||
| ) |
Write an entry to database. If $mid is 0, a new entry is created.
| $mid | ||
| $props |
Definition at line 224 of file Menu.php.
References maxChildIndex().
Here is the call graph for this function:

| Diogenes_Barrel_Menu::$dbh |
| Diogenes_Barrel_Menu::$table_menu |
The database table holding the menus
Definition at line 30 of file Menu.php.
Referenced by Diogenes_Barrel_Menu().
1.5.1