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

Public Member Functions

 initialise_default_pagetype ($script=null)
 url_to_class_name ($url)
 all_editing_caps ()

Detailed Description

Test-specific subclass to make some protected things public.

Definition at line 41 of file testpagelib_moodlepage.php.


Member Function Documentation

Reimplemented from moodle_page.

Definition at line 48 of file testpagelib_moodlepage.php.

initialise_default_pagetype ( script = null)

Sets ->pagetype from the script name. For example, if the script that was run is mod/quiz/view.php, ->pagetype will be set to 'mod-quiz-view'.

Parameters:
string$scriptthe path to the script that should be used to initialise ->pagetype. If not passed the $SCRIPT global will be used. If legacy code has set $CFG->pagepath that will be used instead, and a developer warning issued.

Reimplemented from moodle_page.

Definition at line 42 of file testpagelib_moodlepage.php.

url_to_class_name ( url)

Reimplemented from moodle_page.

Definition at line 45 of file testpagelib_moodlepage.php.


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