| Fully Qualified Name: | CodeIgniter\RESTful\ResourcePresenter |
| Extends: | Controller |
An extendable controller to help provide a UI for a resource.
| 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 |
Process the creation/insertion of a new resource object.
This should be a POST.
Returns: string
Process the deletion of a specific resource object
| Parameter Name | Type | Description |
|---|---|---|
| $id | \type |
Returns: string
Present a view to edit the properties of a specific resource object
| Parameter Name | Type | Description |
|---|---|---|
| $id | \type |
Returns: string
Present a view of resource objects
Returns: string
| Parameter Name | Type | Description |
|---|---|---|
| $request | ||
| $response | ||
| $logger |
Returns: void
Present a view to present a new single resource object
Returns: string
Present a view to confirm the deletion of a specific resource object
| Parameter Name | Type | Description |
|---|---|---|
| $id | \type |
Returns: string
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:
Present a view to present a specific resource object
| Parameter Name | Type | Description |
|---|---|---|
| $id | \type |
Returns: string
Process the updating, full or partial, of a specific resource object.
This should be a POST.
| Parameter Name | Type | Description |
|---|---|---|
| $id | \type |
Returns: string