Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401]

Moodle Wiki 2.0 Renderer

Copyright: 2010 Dongsheng Cai <dongsheng@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 580 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

mod_wiki_renderer:: (14 methods):
  page_index()
  search_result()
  diff()
  diff_paging_bar()
  wiki_info()
  tabs()
  prettyview_link()
  wiki_print_subwiki_selector()
  menu_map()
  wiki_files_tree()
  render_wiki_files_tree()
  menu_admin()
  htmllize_tree()
  render_action_bar()

wiki_files_tree:: (1 method):
  __construct()


Class: mod_wiki_renderer  - X-Ref

page_index()   X-Ref
No description

search_result($records, $subwiki)   X-Ref
No description

diff($pageid, $old, $new, $options = array()   X-Ref
No description

diff_paging_bar($minpage, $maxpage, $page, $baseurl, $pagevar = 'page', $nocurr = false)   X-Ref
Prints a single paging bar to provide access to other versions

param: int $minpage First page to be displayed in the bar
param: int $maxpage Last page to be displayed in the bar
param: int $page The page you are currently viewing
param: mixed $baseurl If this  is a string then it is the url which will be appended with $pagevar, an equals sign and the page number.
param: string $pagevar This is the variable name that you use for the page number in your code (ie. 'tablepage', 'blogpage', etc)
param: bool $nocurr do not display the current page as a link
param: bool $return whether to return an output string or echo now
return: bool or string

wiki_info()   X-Ref
Print the wiki activity information and intro

return: string

tabs($page, $tabitems, $options)   X-Ref
No description

prettyview_link($page)   X-Ref
No description

wiki_print_subwiki_selector($wiki, $subwiki, $page, $pagetype = 'view')   X-Ref
No description

menu_map($pageid, $currentselect)   X-Ref
No description

wiki_files_tree($context, $subwiki)   X-Ref
No description

render_wiki_files_tree(wiki_files_tree $tree)   X-Ref
No description

menu_admin($pageid, $currentselect)   X-Ref
No description

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


render_action_bar(\mod_wiki\output\action_bar $actionbar)   X-Ref
Renders the action bar.

param: \mod_wiki\output\action_bar $actionbar
return: string The HTML output

Class: wiki_files_tree  - X-Ref

__construct($context, $subwiki)   X-Ref
No description