Class ResourcePresenter

Summary

Fully Qualified Name: CodeIgniter\RESTful\ResourcePresenter
Extends: Controller

Description

An extendable controller to help provide a UI for a resource.

Methods

Name Description Defined By
create() Process the creation/insertion of a new resource object. ResourcePresenter
delete() Process the deletion of a specific resource object ResourcePresenter
edit() Present a view to edit the properties of a specific resource object ResourcePresenter
index() Present a view of resource objects ResourcePresenter
initController() ResourcePresenter
new() Present a view to present a new single resource object ResourcePresenter
remove() Present a view to confirm the deletion of a specific resource object ResourcePresenter
setModel() Set or change the model this controller is bound to. ResourcePresenter
show() Present a view to present a specific resource object ResourcePresenter
update() Process the updating, full or partial, of a specific resource object. ResourcePresenter

Method Details

create()

Process the creation/insertion of a new resource object.

This should be a POST.

Returns: string

delete()

Process the deletion of a specific resource object

Parameter Name Type Description
$id \type

Returns: string

edit()

Present a view to edit the properties of a specific resource object

Parameter Name Type Description
$id \type

Returns: string

index()

Present a view of resource objects

Returns: string

initController()

Parameter Name Type Description
$request
$response
$logger

Returns: void

new()

Present a view to present a new single resource object

Returns: string

remove()

Present a view to confirm the deletion of a specific resource object

Parameter Name Type Description
$id \type

Returns: string

setModel()

Set or change the model this controller is bound to.

Given either the name or the object, determine the other.

Parameter Name Type Description
$which string|object

Returns:

show()

Present a view to present a specific resource object

Parameter Name Type Description
$id \type

Returns: string

update()

Process the updating, full or partial, of a specific resource object.

This should be a POST.

Parameter Name Type Description
$id \type

Returns: string

Top