MIDDAG for Moodle

company_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

$admin_section  : string

Methods

create()  : Response
edit()  : Response
index()  : Response

Properties

Methods

create()

public create([mixed $id = 0 ]) : Response
Parameters
$id : mixed = 0
Attributes
#[Route]
$path: '/company/create'
$name: 'create_index'
$methods: ['GET', 'POST']
Return values
Response

edit()

public edit([mixed $id = 0 ]) : Response
Parameters
$id : mixed = 0
Attributes
#[Route]
$path: '/company/edit/{id}'
$name: 'company_edit'
$methods: ['GET', 'POST']
Return values
Response

index()

public index() : Response
Attributes
#[Route]
$path: '/company'
$name: 'company_index'
$methods: ['GET']
Return values
Response

        
On this page

Search results