MIDDAG for Moodle

common_controller extends controller

Public SDK Controller.

Extend this class to implement HTTP controllers in your plugin while benefiting from the framework routing and middleware lifecycle.

Table of Contents

Methods

error()  : Response
This method handles rendering the index page.
example()  : Response
This method handles rendering the index page.
index()  : Response
This method handles rendering the index page.
not_found()  : Response
This method handles rendering the index page.
test_module()  : Response
This method handles rendering the index page.

Methods

error()

This method handles rendering the index page.

public error([mixed $debug_output = '' ]) : Response
Parameters
$debug_output : mixed = ''
Tags
throws
moodle_exception
Attributes
#[Route]
$path: '/error'
$name: 'error'
$methods: ['GET']
Return values
Response

example()

This method handles rendering the index page.

public example() : Response
Tags
throws
moodle_exception
Attributes
#[Route]
$path: '/example'
$name: 'example'
$methods: ['GET']
Return values
Response

index()

This method handles rendering the index page.

public index() : Response
Tags
throws
coding_exception
throws
moodle_exception
Attributes
#[Route]
$path: '/'
$name: 'index'
$methods: ['GET']
Return values
Response

not_found()

This method handles rendering the index page.

public not_found() : Response
Tags
throws
moodle_exception
Attributes
#[Route]
$path: '/not_found'
$name: 'not_found'
$methods: ['GET']
Return values
Response

test_module()

This method handles rendering the index page.

public test_module() : Response
Tags
throws
moodle_exception
Attributes
#[Route]
$path: '/test_module'
$name: 'test_module'
$methods: ['GET']
Return values
Response

        
On this page

Search results