Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Class that models the behavior of wiki's history page. More...
Public Member Functions | |
__construct ($wiki, $subwiki, $cm, ?string $activesecondarytab=null) | |
The page_wiki_history constructor. | |
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. | |
print_pagetitle () | |
Protected method to print current page title. | |
set_allversion ($allversion) | |
set_gid ($gid) | |
Method to set current group id. | |
set_page ($page) | |
Method to set the current page. | |
set_paging ($paging) | |
set_title ($title) | |
Method to set the current page title. | |
set_uid ($uid) | |
Method to set current user id. | |
set_url () | |
Method to set the URL of the page. | |
Protected Member Functions | |
action_bar (int $pageid, moodle_url $pageurl) | |
This method returns the action bar. | |
create_navbar () | |
Protected method to create the common items of the navbar in every page type. | |
process_session_url () | |
set_session_url () | |
setup_tabs ($options=array()) | |
Setup page tabs, if options is empty, will set up active tab automatically. | |
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. | |
array | $tabs_options = array() |
tabs options | |
string | $title |
Current page title. | |
int | $uid |
Current user ID. | |
mod_wiki_renderer | $wikioutput |
wiki renderer | |
Class that models the behavior of wiki's history page.
page_wiki_history::__construct | ( | $wiki, | |
$subwiki, | |||
$cm, | |||
?string | $activesecondarytab = null ) |
The page_wiki_history constructor.
stdClass | $wiki | Current wiki. |
stdClass | $subwiki | Current subwiki. |
stdClass | $cm | Current course_module. |
string | null | $activesecondarytab | Secondary navigation node to be activated on the page, if required |
Reimplemented from page_wiki.
|
protectedinherited |
This method returns the action bar.
int | $pageid | The page id. |
moodle_url | $pageurl | The page url. |
string | The HTML for the action bar. |
Reimplemented in page_wiki_deletecomment, page_wiki_diff, page_wiki_editcomment, page_wiki_restoreversion, page_wiki_view, and page_wiki_viewversion.
|
protected |
Protected method to create the common items of the navbar in every page type.
Reimplemented from page_wiki.
page_wiki_history::print_content | ( | ) |
This method must be overwritten to print the page content.
Reimplemented from page_wiki.
|
inherited |
This method print the footer of the page.
Reimplemented in page_wiki_lock.
page_wiki_history::print_header | ( | ) |
This method prints the top of the page.
Reimplemented from page_wiki.
page_wiki_history::print_pagetitle | ( | ) |
Protected method to print current page title.
Reimplemented from page_wiki.
|
inherited |
Method to set current group id.
int | $gid | Current group id |
|
inherited |
Method to set the current page.
object | $page | Current page |
|
inherited |
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. |
|
inherited |
Method to set current user id.
int | $uid | Current user id |
page_wiki_history::set_url | ( | ) |
Method to set the URL of the page.
This method must be overwritten by every type of page.
Reimplemented from page_wiki.
|
protectedinherited |
Setup page tabs, if options is empty, will set up active tab automatically.
array | $options,tabs | options |
Reimplemented in page_wiki_deletecomment, page_wiki_diff, page_wiki_editcomment, page_wiki_preview, page_wiki_restoreversion, and page_wiki_viewversion.
|
protectedinherited |
The tabs set used in wiki module.