BB_Walker_ForumAdminlistitems

The BuddyPress BB Walker ForumAdminlistitems class.

Defined (1)

The class is defined in the following location(s).

/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php  
  1. class BB_Walker_ForumAdminlistitems extends BB_Walker { 
  2. var $tree_type = 'forum'; 
  3. var $db_fields = array ('parent' => 'forum_parent', 'id' => 'forum_id'); //TODO: decouple this 
  4.  
  5. function start_lvl($output, $depth) { 
  6. $indent = str_repeat("\t", $depth) . ' '; 
  7. $output .= $indent . "<ul id='forum-root-$this->forum_id' class='list-block holder'>\n"; 
  8. return $output; 
  9.  
  10. function end_lvl($output, $depth) { 
  11. $indent = str_repeat("\t", $depth) . ' '; 
  12. $output .= $indent . "</ul>\n"; 
  13. return $output; 
  14.  
  15. function start_el($output, $forum, $depth) { 
  16. $this->forum_id = $forum->forum_id; 
  17. $indent = str_repeat("\t", $depth + 1); 
  18. $output .= $indent . "<li id='forum-$this->forum_id'" . get_alt_class( 'forum', 'forum clear list-block' ) . ">\n"; 
  19.  
  20. return $output; 
  21.  
  22. function end_el($output, $forum, $depth) { 
  23. $indent = str_repeat("\t", $depth + 1); 
  24. $output .= $indent . "</li>\n"; 
  25. return $output;