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
$require_login
protected
bool
$require_login
= true
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
Responsedelete()
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
Responseedit()
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
Responseindex()
This method handles both listing actions.
public
index() : Response
Attributes
- #[Route]
- $path: '/managefiles'
- $name: 'managerfile_index'
- $methods: ['GET', 'POST']
Return values
Responseview()
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
Attributes
- #[Route]
- $path: '/managefiles/{id}/view'
- $name: 'managefiles_view'
- $methods: ['GET']