Moodle  2.2.1
http://www.collinsharper.com
page_wiki_admin Class Reference
Inheritance diagram for page_wiki_admin:
Collaboration diagram for page_wiki_admin:

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)

Detailed Description

This class will let user to delete wiki pages and page versions

Definition at line 2356 of file pagelib.php.


Constructor & Destructor Documentation

__construct ( wiki,
subwiki,
cm 
)

Constructor

object $PAGE

Parameters:
mixed$wikiinstance of wiki
mixed$subwikiinstance of subwiki
stdClass$cmcourse module

Reimplemented from page_wiki.

Definition at line 2369 of file pagelib.php.


Member Function Documentation

add_page_delete_options ( pages,
swid,
&$  table 
) [protected]

helper function for print_delete_content. This will add data to the table.

object $OUTPUT

Parameters:
array$pagesobjects of wiki pages in subwiki
int$swidid of subwiki
object$tablereference to the table in which data needs to be added

Definition at line 2511 of file pagelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

create_navbar ( ) [protected]

sets navigation bar for the page

object $PAGE

Reimplemented from page_wiki.

Definition at line 2441 of file pagelib.php.

This function will display administration view to users with managewiki capability

Reimplemented from page_wiki.

Definition at line 2386 of file pagelib.php.

Here is the call graph for this function:

print_delete_content ( showorphan = true) [protected]

Show wiki page delete options

Parameters:
bool$showorphan

Print the form

Definition at line 2453 of file pagelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Prints header for wiki page

Reimplemented from page_wiki.

Definition at line 2378 of file pagelib.php.

Here is the call graph for this function:

set_url ( )

Sets page url

object $PAGE object $CFG

Reimplemented from page_wiki.

Definition at line 2431 of file pagelib.php.

set_view ( view,
listorphan = true 
)

Sets admin view option

Parameters:
int$viewpage view id
bool$listorphanis only valid for view 1.

Definition at line 2420 of file pagelib.php.


Field Documentation

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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations