MIDDAG for Moodle

managefiles 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

Constants

MANAGEFILESTUDIOINDEX  = 'ManageFileStudioIndex'

Properties

$require_login  : bool

Methods

create()  : Response
This method handles the creation of a Looker Studio dashboard.
delete()  : Response
This method handles the deletion of a Looker Studio dashboard.
edit()  : Response
This method handles the creation of a Looker Studio dashboard.
index()  : Response
This method handles both listing actions.
view()  : void
This method provides the view file.

Constants

MANAGEFILESTUDIOINDEX

public mixed MANAGEFILESTUDIOINDEX = 'ManageFileStudioIndex'

Properties

Methods

create()

This method handles the creation of a Looker Studio dashboard.

public create() : Response
Attributes
#[Route]
$path: '/managefiles/create'
$name: 'managefile_create'
$methods: ['GET', 'POST']
Return values
Response

delete()

This method handles the deletion of a Looker Studio dashboard.

public delete(int $id) : Response
Parameters
$id : int

the ID of the Looker Studio dashboard to be deleted

Attributes
#[Route]
$path: '/managefiles/{id}/delete'
$name: 'manage_file_delete'
$methods: ['DELETE']
Return values
Response

edit()

This method handles the creation of a Looker Studio dashboard.

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

index()

This method handles both listing actions.

public index() : Response
Attributes
#[Route]
$path: '/managefiles'
$name: 'managerfile_index'
$methods: ['GET', 'POST']
Return values
Response

view()

This method provides the view file.

public view(int $id) : void
Parameters
$id : int

the ID of the Looker Studio dashboard to be viewed

Tags
throws
Exception

if the ID is not provided

Attributes
#[Route]
$path: '/managefiles/{id}/view'
$name: 'managefiles_view'
$methods: ['GET']

        
On this page

Search results