Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
mod_wiki_renderer Class Reference
Inheritance diagram for mod_wiki_renderer:

Public Member Functions

 diff ($pageid, $old, $new, $options=array())
 
 diff_paging_bar ($minpage, $maxpage, $page, $baseurl, $pagevar='page', $nocurr=false)
 Prints a single paging bar to provide access to other versions.
 
 menu_admin ($pageid, $currentselect)
 
 menu_map ($pageid, $currentselect)
 
 page_index ()
 
 prettyview_link ($page)
 
 render_action_bar (\mod_wiki\output\action_bar $actionbar)
 Renders the action bar.
 
 render_wiki_files_tree (wiki_files_tree $tree)
 
 search_result ($records, $subwiki)
 
 tabs ($page, $tabitems, $options)
 
 wiki_files_tree ($context, $subwiki)
 
 wiki_info ()
 
 wiki_print_subwiki_selector ($wiki, $subwiki, $page, $pagetype='view')
 

Protected Member Functions

 htmllize_tree ($tree, $dir)
 Internal function - creates htmls structure suitable for YUI tree.
 

Member Function Documentation

◆ diff_paging_bar()

mod_wiki_renderer::diff_paging_bar ( $minpage,
$maxpage,
$page,
$baseurl,
$pagevar = 'page',
$nocurr = false )

Prints a single paging bar to provide access to other versions.

Parameters
int$minpageFirst page to be displayed in the bar
int$maxpageLast page to be displayed in the bar
int$pageThe page you are currently viewing
mixed$baseurlIf this is a string then it is the url which will be appended with $pagevar, an equals sign and the page number. If this is a moodle_url object then the pagevar param will be replaced by the page no, for each page.
string$pagevarThis is the variable name that you use for the page number in your code (ie. 'tablepage', 'blogpage', etc)
bool$nocurrdo not display the current page as a link
bool$returnwhether to return an output string or echo now
Return values
boolor string

◆ render_action_bar()

mod_wiki_renderer::render_action_bar ( \mod_wiki\output\action_bar $actionbar)

Renders the action bar.

Parameters
mod_wiki\output\action_bar$actionbar
Return values
stringThe HTML output

◆ wiki_info()

mod_wiki_renderer::wiki_info ( )
Deprecated
since Moodle 4.0 MDL-72413. Now handled in PAGE's activity header

The documentation for this class was generated from the following file: