Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Class that models the behavior of wiki's save page. More...
Public Member Functions | |
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_attachments ($attachments) | |
set_deleteuploads ($deleteuploads) | |
set_format ($format) | |
set_gid ($gid) | |
Method to set current group id. | |
set_newcontent ($newcontent) | |
set_overridelock ($override) | |
set_page ($page) | |
Method to set the current page. | |
set_section ($sectioncontent, $section) | |
set_title ($title) | |
Method to set the current page title. | |
set_uid ($uid) | |
Method to set current user id. | |
set_upload ($upload) | |
set_versionnumber ($versionnumber) | |
Static Public Attributes | |
static | $attachmentoptions |
Protected Member Functions | |
action_bar (int $pageid, moodle_url $pageurl) | |
This method returns the action bar. | |
check_locks () | |
create_navbar () | |
Protected method to create the common items of the navbar in every page type. | |
print_edit ($content=null) | |
print_pagetitle () | |
Protected method to print current page title. | |
print_save () | |
process_session_url () | |
set_session_url () | |
set_url () | |
Method to set the URL of the page. | |
setup_tabs ($options=array()) | |
Setup page tabs, if options is empty, will set up active tab automatically. | |
Protected Attributes | |
$attachments = 0 | |
stdClass | $cm |
course module. | |
$deleteuploads = array() | |
$format | |
int | $gid |
Current group ID. | |
object | $modcontext |
module context object | |
$overridelock = false | |
int | $page |
Current page. | |
string | $section |
the section name needed to be edited | |
$sectioncontent | |
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. | |
$upload = false | |
$versionnumber = -1 | |
mod_wiki_renderer | $wikioutput |
wiki renderer | |
Class that models the behavior of wiki's save page.
|
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.
|
protectedinherited |
Protected method to create the common items of the navbar in every page type.
Reimplemented from page_wiki.
page_wiki_save::print_content | ( | ) |
This method must be overwritten to print the page content.
Reimplemented from page_wiki_edit.
Reimplemented in page_wiki_confirmrestore.
|
inherited |
This method print the footer of the page.
Reimplemented in page_wiki_lock.
page_wiki_save::print_header | ( | ) |
This method prints the top of the page.
Reimplemented from page_wiki_edit.
Reimplemented in page_wiki_confirmrestore.
|
protectedinherited |
Protected method to print current page title.
Reimplemented from page_wiki.
|
protectedinherited |
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 |
|
protected |
Reimplemented from page_wiki_edit.
|
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 |
|
protectedinherited |
Method to set the URL of the page.
This method must be overwritten by every type of page.
Reimplemented from page_wiki.
Reimplemented in page_wiki_confirmrestore, page_wiki_lock, page_wiki_overridelocks, and page_wiki_preview.
|
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.