MIDDAG for Moodle

lookerstudio 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

LOOKERSTUDIOCREATE  = 'LookerStudioCreate'
LOOKERSTUDIOINDEX  = 'LookerStudioIndex'

Methods

create()  : Response
This method handles both creating a customform.
edit()  : Response
This method handles both edit a customform.
get_profile_fields()  : Response
This method handles the request to get profile fields.
index()  : Response
This method handles both listing actions.
list()  : Response
This method handles both listing stores and showing a specific store by ID.
view()  : string
This method provides the view for a Looker Studio dashboard.

Constants

LOOKERSTUDIOCREATE

public mixed LOOKERSTUDIOCREATE = 'LookerStudioCreate'

LOOKERSTUDIOINDEX

public mixed LOOKERSTUDIOINDEX = 'LookerStudioIndex'

Methods

create()

This method handles both creating a customform.

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

edit()

This method handles both edit a customform.

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

get_profile_fields()

This method handles the request to get profile fields.

public get_profile_fields() : Response
Attributes
#[Route]
$path: 'lookerstudio/get_profile_fields'
$name: 'lookerstudio_profile_field_render'
$methods: ['GET']
Return values
Response

index()

This method handles both listing actions.

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

list()

This method handles both listing stores and showing a specific store by ID.

public list() : Response
Attributes
#[Route]
$path: 'lookerstudio/list'
$name: 'lookerstudio_list'
$methods: ['GET']
Return values
Response

view()

This method provides the view for a Looker Studio dashboard.

public view(int $id) : string
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: 'lookerstudio/view/{id}'
$name: 'lookerstudio_view'
$methods: ['GET']
Return values
string

the HTML iframe content for the Looker Studio dashboard


        
On this page

Search results