customform 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
- CUSTOMFORMINDEX = 'customform/Index'
- CUSTOMFORMRENDER = 'customform/Render'
Methods
- actions_update() : Response
- This method is used to define the actions for the controller.
- active_or_inactive_form() : Response
- This method handles both listing stores and showing a specific store by ID.
- create() : Response
- This method handles both creating a customform.
- edit() : Response
- This method handles both edit a customform.
- form_actions_index() : Response
- This method is used to define the actions for the controller.
- index() : Response
- This method handles both listing stores and showing a specific store by ID.
- render_customform() : Response
- This method handles both render customform.
- store() : Response
- This method handles both creating a customform.
- update() : Response
- This method handles both creating a customform.
- verify_idnumber() : Response
- This method handles both listing stores and showing a specific store by ID.
Constants
CUSTOMFORMINDEX
public
mixed
CUSTOMFORMINDEX
= 'customform/Index'
CUSTOMFORMRENDER
public
mixed
CUSTOMFORMRENDER
= 'customform/Render'
Methods
actions_update()
This method is used to define the actions for the controller.
public
actions_update(mixed $id) : Response
It can be overridden in child classes to provide specific actions.
Parameters
- $id : mixed
Attributes
- #[Route]
- $path: 'customform/{id}/actions/store'
- $name: 'customform_actions_store'
- $methods: ['POST']
Return values
Responseactive_or_inactive_form()
This method handles both listing stores and showing a specific store by ID.
public
active_or_inactive_form(mixed $id) : Response
Parameters
- $id : mixed
Attributes
- #[Route]
- $path: '/customform/active_or_inactive_form/{id}'
- $name: 'customform_active_or_inactive_form'
- $methods: ['POST']
Return values
Responsecreate()
This method handles both creating a customform.
public
create() : Response
Attributes
- #[Route]
- $path: '/customform/create'
- $name: 'customform_create'
- $methods: ['GET']
Return values
Responseedit()
This method handles both edit a customform.
public
edit(mixed $id) : Response
Parameters
- $id : mixed
Attributes
- #[Route]
- $path: 'customform/{id}/edit'
- $name: 'customform_edit'
- $methods: ['GET']
Return values
Responseform_actions_index()
This method is used to define the actions for the controller.
public
form_actions_index(mixed $id) : Response
It can be overridden in child classes to provide specific actions.
Parameters
- $id : mixed
Attributes
- #[Route]
- $path: 'customform/{id}/actions'
- $name: 'customform_actions_index'
- $methods: ['GET']
Return values
Responseindex()
This method handles both listing stores and showing a specific store by ID.
public
index() : Response
Attributes
- #[Route]
- $path: '/customform'
- $name: 'customform_index'
- $methods: ['GET']
Return values
Responserender_customform()
This method handles both render customform.
public
render_customform(null|int $idnumber) : Response
Parameters
- $idnumber : null|int
-
Optional store ID
Attributes
- #[Route]
- $path: '/customform/{idnumber}/view'
- $name: 'customform_render'
- $methods: ['GET']
Return values
Responsestore()
This method handles both creating a customform.
public
store() : Response
Attributes
- #[Route]
- $path: 'customform/store'
- $name: 'customform_store'
- $methods: ['POST']
Return values
Responseupdate()
This method handles both creating a customform.
public
update(mixed $id) : Response
Parameters
- $id : mixed
Attributes
- #[Route]
- $path: 'customform/{id}/update'
- $name: 'customform_update'
- $methods: ['POST']
Return values
Responseverify_idnumber()
This method handles both listing stores and showing a specific store by ID.
public
verify_idnumber(mixed $idnumber) : Response
Parameters
- $idnumber : mixed
Attributes
- #[Route]
- $path: '/customform/verify_idnumber/{idnumber}'
- $name: 'customform_verify_idnumber'
- $methods: ['GET']