Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
This class will let user to delete wiki pages and page versions. More...
Public Member Functions | |
object | __construct ($wiki, $subwiki, $cm) |
Constructor. More... | |
print_content () | |
This function will display administration view to users with managewiki capability. | |
print_footer () | |
This method print the footer of the page. | |
print_header () | |
Prints header for wiki 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... | |
object | set_url () |
Sets page url. More... | |
set_view ($view, $listorphan=true) | |
Sets admin view option. More... | |
Public Attributes | |
$action | |
$listorphan = false | |
$view | |
Protected Member Functions | |
object | add_page_delete_options ($pages, $swid, &$table) |
helper function for print_delete_content. More... | |
object | create_navbar () |
sets navigation bar for the page More... | |
print_delete_content ($showorphan=true) | |
Show wiki page delete options. More... | |
print_pagetitle () | |
Protected method to print current page title. | |
process_session_url () | |
set_session_url () | |
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 | |
This class will let user to delete wiki pages and page versions.
object page_wiki_admin::__construct | ( | $wiki, | |
$subwiki, | |||
$cm | |||
) |
Constructor.
$PAGE
mixed | $wiki | instance of wiki |
mixed | $subwiki | instance of subwiki |
stdClass | $cm | course module |
Reimplemented from page_wiki.
|
protected |
helper function for print_delete_content.
This will add data to the table.
$OUTPUT
array | $pages | objects of wiki pages in subwiki |
int | $swid | id of subwiki |
object | $table | reference to the table in which data needs to be added |
|
protected |
|
protected |
Show wiki page delete options.
bool | $showorphan |
|
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 |
object page_wiki_admin::set_url | ( | ) |
page_wiki_admin::set_view | ( | $view, | |
$listorphan = true |
|||
) |
Sets admin view option.
int | $view | page view id |
bool | $listorphan | is only valid for view 1. |
|
protectedinherited |
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.
|
protectedinherited |
The tabs set used in wiki module.