Basicis - Core

Logo

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

View the Project on GitHub basicis/core

Basicis\Controller\Controller

Controller Class - Controller implements ControllerInterface, all controller classes extend from this

Implements:

Basicis\Http\Server\RequestHandlerInterface, Basicis\Controller\ControllerInterface

Extend:

Basicis\Http\Server\RequestHandler

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  
extractUniqueColumns Function extractUniqueColumns
Extract Unique Columns of model class and return these as array  
find Function find
Find one a model item of the specified class  
getModelByAnnotation Function getModelByAnnotation
Get annotations model class  
index Function index
Default method  
update Function update
Update a model of the specified class  

Inherited methods

Name Description
__invoke Function handle
Handles a request and produces a response.  
handle Function handle
Handles a request and produces a response.  

Controller::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


Controller::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


Controller::delete

Description

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

Function delete Delete a model of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


Controller::extractUniqueColumns

Description

public static extractUniqueColumns (string $class, array $args)

Function extractUniqueColumns Extract Unique Columns of model class and return these as array

Parameters

Return Values

array


Controller::find

Description

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

Function find Find one a model item of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


Controller::getModelByAnnotation

Description

public getModelByAnnotation (void)

Function getModelByAnnotation Get annotations model class

Parameters

This function has no parameters.

Return Values

string|null


Controller::index

Description

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

Function index Default method

Parameters

Return Values

\Psr\Http\Message\ResponseInterface


Controller::update

Description

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

Function update Update a model of the specified class

Parameters

Return Values

\Psr\Http\Message\ResponseInterface