|
Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Class page_wiki contains the common code between all pages. More...
Public Member Functions | |
| __construct ($wiki, $subwiki, $cm) | |
| page_wiki constructor More... | |
| print_content () | |
| This method must be overwritten to print the page content. | |
| print_footer () | |
| This method print the footer of the page. | |
| print_header () | |
| This method prints the top of the page. | |
| set_gid ($gid) | |
| Method to set current group id. More... | |
| set_page ($page) | |
| Method to set the current page. More... | |
| set_title ($title) | |
| Method to set the current page title. More... | |
| set_uid ($uid) | |
| Method to set current user id. More... | |
Protected Member Functions | |
| create_navbar () | |
| Protected method to create the common items of the navbar in every page type. | |
| print_pagetitle () | |
| Protected method to print current page title. | |
| process_session_url () | |
| set_session_url () | |
| set_url () | |
| Method to set the URL of the page. More... | |
| setup_tabs ($options=array()) | |
| Setup page tabs, if options is empty, will set up active tab automatically. More... | |
Protected Attributes | |
| stdClass | $cm |
| course module. | |
| int | $gid |
| Current group ID. | |
| object | $modcontext |
| module context object | |
| int | $page |
| Current page. | |
| object | $subwiki |
| Current subwiki. | |
| array | $tabs |
| The tabs set used in wiki module. More... | |
| array | $tabs_options = array() |
| tabs options | |
| string | $title |
| Current page title. | |
| int | $uid |
| Current user ID. | |
| mod_wiki_renderer | $wikioutput |
| wiki renderer | |
Class page_wiki contains the common code between all pages.
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
| page_wiki::__construct | ( | $wiki, | |
| $subwiki, | |||
| $cm | |||
| ) |
page_wiki constructor
| $wiki. | Current wiki |
| $subwiki. | Current subwiki. |
| $cm. | Current course_module. |
Reimplemented in page_wiki_admin, page_wiki_prettyview, page_wiki_history, and page_wiki_edit.
| page_wiki::set_gid | ( | $gid | ) |
Method to set current group id.
| int | $gid | Current group id |
| page_wiki::set_page | ( | $page | ) |
Method to set the current page.
| object | $page | Current page |
| page_wiki::set_title | ( | $title | ) |
Method to set the current page title.
This method must be called when the current page is not created yet.
| string | $title | Current page title. |
| page_wiki::set_uid | ( | $uid | ) |
Method to set current user id.
| int | $uid | Current user id |
|
protected |
Method to set the URL of the page.
This method must be overwritten by every type of page.
Reimplemented in page_wiki_admin, page_wiki_overridelocks, page_wiki_lock, page_wiki_handlecomments, page_wiki_prettyview, page_wiki_confirmrestore, page_wiki_viewversion, page_wiki_deletecomment, page_wiki_restoreversion, page_wiki_map, page_wiki_history, page_wiki_diff, page_wiki_preview, page_wiki_create, page_wiki_search, page_wiki_editcomment, page_wiki_comments, page_wiki_edit, and page_wiki_view.
|
protected |
Setup page tabs, if options is empty, will set up active tab automatically.
| array | $options,tabs | options |
Reimplemented in page_wiki_viewversion, page_wiki_deletecomment, page_wiki_restoreversion, page_wiki_diff, page_wiki_preview, and page_wiki_editcomment.
|
protected |
The tabs set used in wiki module.