As the name says, it is made to be basic and direct.
ControllerInterface, all controller classes implements from this
Basicis\Http\Server\RequestHandlerInterface
Name | Description |
---|---|
all | Function all |
Find all a model items of the specified class | |
create | Function create |
Creates a model of the specified class | |
delete | Function delete |
Delete a model of the specified class | |
find | Function find |
Find one a model item of the specified class | |
handle | Function handle |
Default method | |
index | Function index |
Default method index | |
update | Function update |
Update a model of the specified class |
Description
public all (\Basicis\Basicis $app, \Models $models)
Function all Find all a model items of the specified class
Parameters
(\Basicis\Basicis) $app
(\Models) $models
Return Values
\Psr\Http\Message\ResponseInterface
Description
public create (\Basicis\Basicis $app, object $args)
Function create Creates a model of the specified class
Parameters
(\Basicis\Basicis) $app
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface
Description
public delete (\Basicis\Basicis $app, \Basicis\Model\Model $model, object $args)
Function delete Delete a model of the specified class
Parameters
(\Basicis\Basicis) $app
(\Basicis\Model\Model) $model
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface
Description
public find (\Basicis\Basicis $app, \Basicis\Model\Model $model, object $args)
Function find Find one a model item of the specified class
Parameters
(\Basicis\Basicis) $app
(\Basicis\Model\Model) $model
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface
Description
public handle (\ServerRequestInterface $request, \ResponseInterface $response, callable $next, object|array|null $args)
Function handle Default method
Parameters
(\ServerRequestInterface) $request
(\ResponseInterface) $response
(callable) $next
(object|array|null) $args
Return Values
\ResponseInterface
Description
public index (\Basicis\Basicis $app, object $args)
Function index Default method index
Parameters
(\Basicis\Basicis) $app
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface
Description
public update (\Basicis\Basicis $app, \Basicis\Model\Model $model, object $args)
Function update Update a model of the specified class
Parameters
(\Basicis\Basicis) $app
(\Basicis\Model\Model) $model
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface