## Class mr_controller_mod

Description

MR Controller for Modules

- author: Mark Nielsen
- abstract:

Located in /controller/mod.php (line 37)

    mr_readonly
       |
       --mr_controller
          |
          --mr_controller_mod

Variable Summary
object $cm
object $instance
Method Summary
object get_context ()
void new_url ([ $extraparams = array()])
void setup ()
Variables
object $cm (line 44)

Course module record

- access: protected

object $instance (line 51)

Module instance record

- access: protected

#### Inherited Variables

Inherited from mr_controller

> mr_controller::$action
> mr_controller::$component
> mr_controller::$config
> mr_controller::$heading
> mr_controller::$helper
> mr_controller::$identifier
> mr_controller::$mroutput
> mr_controller::$name
> mr_controller::$output
> mr_controller::$plugin
> mr_controller::$tabs
> mr_controller::$url

Methods
get_context (line 108)

Get controller context

Get module context

- access: public

object get_context ()

Redefinition of:

mr_controller::get_context()
  Get controller context

new_url (line 97)

Generate a new URL to this controller

Include course module ID in the URL

- access: public

void new_url ([ $extraparams = array()])

- $extraparams

Redefinition of:

mr_controller::new_url()
  Generate a new URL to this controller

setup (line 63)

Controller setup

Get $cm and $instance and perform proper call to require_login()

- see: mr_controller_mod::$cm, mr_controller_mod::$instance
- throws: coding_exception
- access: public

void setup ()

Redefinition of:

mr_controller::setup()
  Controller setup

#### Inherited Methods

Inherited From mr_controller

> mr_controller::__construct()
> mr_controller::add_tabs()
> mr_controller::get_config()
> mr_controller::get_context()
> mr_controller::init()
> mr_controller::init_tabs()
> mr_controller::new_url()
> mr_controller::print_footer()
> mr_controller::print_header()
> mr_controller::render()
> mr_controller::require_capability()
> mr_controller::setup()

Inherited From mr_readonly

> mr_readonly::__call()

Documentation generated on Thu, 28 Jun 2012 16:33:49 -0700 by phpDocumentor 1.4.3