|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($wiki, $subwiki, $cm) | |
| print_header () | |
| print_content () | |
| set_view ($view, $listorphan=true) | |
| set_url () | |
Data Fields | |
| $view | |
| $action | |
| $listorphan = false | |
Protected Member Functions | |
| create_navbar () | |
| print_delete_content ($showorphan=true) | |
| add_page_delete_options ($pages, $swid, &$table) | |
This class will let user to delete wiki pages and page versions
Definition at line 2356 of file pagelib.php.
| __construct | ( | $ | wiki, |
| $ | subwiki, | ||
| $ | cm | ||
| ) |
Constructor
object $PAGE
| mixed | $wiki | instance of wiki |
| mixed | $subwiki | instance of subwiki |
| stdClass | $cm | course module |
Reimplemented from page_wiki.
Definition at line 2369 of file pagelib.php.
| add_page_delete_options | ( | $ | pages, |
| $ | swid, | ||
| &$ | table | ||
| ) | [protected] |
helper function for print_delete_content. This will add data to the table.
object $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 |
Definition at line 2511 of file pagelib.php.


| create_navbar | ( | ) | [protected] |
sets navigation bar for the page
object $PAGE
Reimplemented from page_wiki.
Definition at line 2441 of file pagelib.php.
| print_content | ( | ) |
This function will display administration view to users with managewiki capability
Reimplemented from page_wiki.
Definition at line 2386 of file pagelib.php.

| print_delete_content | ( | $ | showorphan = true | ) | [protected] |
Show wiki page delete options
| bool | $showorphan |
Print the form
Definition at line 2453 of file pagelib.php.


| print_header | ( | ) |
Prints header for wiki page
Reimplemented from page_wiki.
Definition at line 2378 of file pagelib.php.

| set_url | ( | ) |
Sets page url
object $PAGE object $CFG
Reimplemented from page_wiki.
Definition at line 2431 of file pagelib.php.
Sets admin view option
| int | $view | page view id |
| bool | $listorphan | is only valid for view 1. |
Definition at line 2420 of file pagelib.php.
Definition at line 2358 of file pagelib.php.
| $listorphan = false |
Definition at line 2359 of file pagelib.php.
| $view |
Definition at line 2358 of file pagelib.php.