Basicis - Core

Logo

As the name says, it is made to be basic and direct.

View the Project on GitHub basicis/core

Basicis\Controller\ControllerInterface

ControllerInterface, all controller classes implements from this

Implements:

Basicis\Http\Server\RequestHandlerInterface

Methods

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  

ControllerInterface::all

Description

public all (\Basicis\Basicis $app, \Models $models)

Function all Find all a model items of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


ControllerInterface::create

Description

public create (\Basicis\Basicis $app, object $args)

Function create Creates a model of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


ControllerInterface::delete

Description

public delete (\Basicis\Basicis $app, \Basicis\Model\Model $model, object $args)

Function delete Delete a model of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


ControllerInterface::find

Description

public find (\Basicis\Basicis $app, \Basicis\Model\Model $model, object $args)

Function find Find one a model item of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


ControllerInterface::handle

Description

public handle (\ServerRequestInterface $request, \ResponseInterface $response, callable $next, object|array|null $args)

Function handle Default method

Parameters

Return Values

\ResponseInterface


ControllerInterface::index

Description

public index (\Basicis\Basicis $app, object $args)

Function index Default method index

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


ControllerInterface::update

Description

public update (\Basicis\Basicis $app, \Basicis\Model\Model $model, object $args)

Function update Update a model of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface