Diogenes_Barrel_Menu Class Reference

List of all members.

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

Detailed Description

This class is used to generate the menu of a Diogenes barrel page.

Definition at line 24 of file Menu.php.


Member Function Documentation

Diogenes_Barrel_Menu::Diogenes_Barrel_Menu ( &$  dbh,
table_menu 
)

Constructs a Smarty-derived object to display contents within a barrel.

Parameters:
$override_pathinfo 

Definition at line 36 of file Menu.php.

References $dbh, and $table_menu.

Diogenes_Barrel_Menu::deleteEntry ( MID,
parent,
&$  caller 
)

Delete the specified entry.

Parameters:
$MID 
$parent 
$caller 

Definition at line 48 of file Menu.php.

Diogenes_Barrel_Menu::makeMenu ( PID,
min_level,
pid_to_url 
)

Build the user-defined part of the menu.

Parameters:
$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.

Parameters:
$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.

Parameters:
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

Parameters:
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 
)

Swap entries $a and $b within $parent.

Parameters:
$parent 
$a 
$b 

Definition at line 198 of file Menu.php.

Diogenes_Barrel_Menu::writeEntry ( mid,
props 
)

Write an entry to database. If $mid is 0, a new entry is created.

Parameters:
$mid 
$props 

Definition at line 224 of file Menu.php.

References maxChildIndex().

Here is the call graph for this function:


Member Data Documentation

Diogenes_Barrel_Menu::$dbh

Database handle

Definition at line 27 of file Menu.php.

Referenced by Diogenes_Barrel_Menu().

Diogenes_Barrel_Menu::$table_menu

The database table holding the menus

Definition at line 30 of file Menu.php.

Referenced by Diogenes_Barrel_Menu().


The documentation for this class was generated from the following file:
Generated on Fri Jan 11 01:20:08 2008 for Diogenes by  doxygen 1.5.1