Aplus Framework Docs

PresenterInterface
in

Interface PresenterInterface.

The interface for data management via a Web Browser UI using the HTTP GET and POST methods.

Note: If a presenter needs more than one parameter to get URL path information provided by placeholders, in addition to $id, do not implement this interface. But this interface can be a reference because its method names are used in RouteCollection::presenter().

Tags
see
https://developer.mozilla.org/en-US/docs/Glossary/UI

Table of Contents

Methods

create()  : mixed
Handles a POST request for /.
delete()  : mixed
Handles a POST request for /$id/delete.
edit()  : mixed
Handles a GET request for /$id/edit.
index()  : mixed
Handles a GET request for /.
new()  : mixed
Handles a GET request for /new.
remove()  : mixed
Handles a GET request for /$id/remove.
show()  : mixed
Handles a GET request for /$id.
update()  : mixed
Handles a POST request for /$id/update.

Methods

remove()

Handles a GET request for /$id/remove.

public remove(string $id) : mixed

Common usage: Show an alert message about the item to be deleted based on the $id. The confirmation action must call a POST request to the 'delete' method URL.

Parameters
$id : string
Tags
see
PresenterInterface::delete()
Method::GET

        
On this page

Search results