MIDDAG for Moodle

coursegroup_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

Properties

$coursegroup_service  : coursegroup_service

Methods

__construct()  : mixed
Constructor with dependency injection.
create()  : RedirectResponse|Response
Create a new coursegroup.
edit()  : RedirectResponse|Response
Edit an existing coursegroup.
index()  : Response
This method handles the index page.

Properties

Methods

create()

Create a new coursegroup.

public create() : RedirectResponse|Response
Tags
throws
coding_exception
throws
moodle_exception
throws
Exception
Attributes
#[Route]
$path: '/coursegroup/create'
$name: 'coursegroup_create'
$methods: ['GET', 'POST']
Return values
RedirectResponse|Response

edit()

Edit an existing coursegroup.

public edit([int $id = 0 ]) : RedirectResponse|Response
Parameters
$id : int = 0
Tags
throws
coding_exception
throws
moodle_exception
throws
Exception
throws
Throwable
Attributes
#[Route]
$path: '/coursegroup/edit/{id}'
$name: 'coursegroup_edit'
$methods: ['GET', 'POST']
Return values
RedirectResponse|Response

index()

This method handles the index page.

public index() : Response

List all coursegroups.

Tags
throws
moodle_exception
throws
Exception
Attributes
#[Route]
$path: '/coursegroup'
$name: 'coursegroup_index'
$methods: ['GET']
Return values
Response

        
On this page

Search results