This class will let user to delete wiki pages and page versions.
More...
|
| object | __construct ($wiki, $subwiki, $cm, ?string $activesecondarytab=null) |
| | Constructor.
|
| |
| | 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.
|
| |
| | set_page ($page) |
| | Method to set the current page.
|
| |
| | set_title ($title) |
| | Method to set the current page title.
|
| |
| | set_uid ($uid) |
| | Method to set current user id.
|
| |
| object | set_url () |
| | Sets page url.
|
| |
| | set_view ($view, $listorphan=true) |
| | Sets admin view option.
|
| |
|
|
| $action |
| |
|
| $listorphan = false |
| |
|
| $view |
| |
|
| | action_bar (int $pageid, moodle_url $pageurl) |
| | This method returns the action bar.
|
| |
| object | add_page_delete_options ($pages, $swid, &$table) |
| | helper function for print_delete_content.
|
| |
| object | create_navbar () |
| | sets navigation bar for the page
|
| |
| | print_delete_content ($showorphan=true) |
| | Show wiki page delete options.
|
| |
| | 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.
|
| |
|
|
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
|
| |
This class will let user to delete wiki pages and page versions.
◆ __construct()
| object page_wiki_admin::__construct |
( |
| $wiki, |
|
|
| $subwiki, |
|
|
| $cm, |
|
|
?string | $activesecondarytab = null ) |
Constructor.
$PAGE
- Parameters
-
| mixed | $wiki | instance of wiki |
| mixed | $subwiki | instance of subwiki |
| stdClass | $cm | course module |
| string | null | $activesecondarytab | Secondary navigation node to be activated on the page, if required |
Reimplemented from page_wiki.
◆ action_bar()
| page_wiki::action_bar |
( |
int | $pageid, |
|
|
moodle_url | $pageurl ) |
|
protectedinherited |
◆ add_page_delete_options()
| object page_wiki_admin::add_page_delete_options |
( |
| $pages, |
|
|
| $swid, |
|
|
& | $table ) |
|
protected |
helper function for print_delete_content.
This will add data to the table.
$OUTPUT
- Parameters
-
| 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 |
◆ create_navbar()
| object page_wiki_admin::create_navbar |
( |
| ) |
|
|
protected |
sets navigation bar for the page
$PAGE
Reimplemented from page_wiki.
◆ print_content()
| page_wiki_admin::print_content |
( |
| ) |
|
This function will display administration view to users with managewiki capability.
Reimplemented from page_wiki.
◆ print_delete_content()
| page_wiki_admin::print_delete_content |
( |
| $showorphan = true | ) |
|
|
protected |
Show wiki page delete options.
- Parameters
-
◆ print_footer()
| page_wiki::print_footer |
( |
| ) |
|
|
inherited |
This method print the footer of the page.
Reimplemented in page_wiki_lock.
◆ print_header()
| page_wiki_admin::print_header |
( |
| ) |
|
Prints header for wiki page.
Reimplemented from page_wiki.
◆ print_pagetitle()
| page_wiki::print_pagetitle |
( |
| ) |
|
|
protectedinherited |
◆ set_gid()
| page_wiki::set_gid |
( |
| $gid | ) |
|
|
inherited |
Method to set current group id.
- Parameters
-
◆ set_page()
| page_wiki::set_page |
( |
| $page | ) |
|
|
inherited |
Method to set the current page.
- Parameters
-
◆ set_title()
| page_wiki::set_title |
( |
| $title | ) |
|
|
inherited |
Method to set the current page title.
This method must be called when the current page is not created yet.
- Parameters
-
| string | $title | Current page title. |
◆ set_uid()
| page_wiki::set_uid |
( |
| $uid | ) |
|
|
inherited |
Method to set current user id.
- Parameters
-
◆ set_url()
| object page_wiki_admin::set_url |
( |
| ) |
|
Sets page url.
$PAGE @global object $CFG
Reimplemented from page_wiki.
◆ set_view()
| page_wiki_admin::set_view |
( |
| $view, |
|
|
| $listorphan = true ) |
Sets admin view option.
- Parameters
-
| int | $view | page view id |
| bool | $listorphan | is only valid for view 1. |
◆ setup_tabs()
| page_wiki::setup_tabs |
( |
| $options = array() | ) |
|
|
protectedinherited |
◆ $tabs
Initial value:= array('view' => 'view', 'edit' => 'edit', 'comments' => 'comments',
'history' => 'history', 'map' => 'map', 'files' => 'files',
'admin' => 'admin')
The tabs set used in wiki module.
The documentation for this class was generated from the following file: