As the name says, it is made to be basic and direct.
Controller Class - Controller implements ControllerInterface, all controller classes extend from this
Basicis\Http\Server\RequestHandlerInterface, Basicis\Controller\ControllerInterface
Basicis\Http\Server\RequestHandler
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 |
Name | Description |
---|---|
__invoke | Function handle |
Handles a request and produces a response. | |
handle | Function handle |
Handles a request and produces a response. |
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, \Model $model, object $args)
Function delete Delete a model of the specified class
Parameters
(\Basicis\Basicis) $app
(\Model) $model
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface
Description
public static extractUniqueColumns (string $class, array $args)
Function extractUniqueColumns Extract Unique Columns of model class and return these as array
Parameters
(string) $class
(array) $args
Return Values
array
Description
public find (\Basicis\Basicis $app, \Model $model, object $args)
Function find Find one a model item of the specified class
Parameters
(\Basicis\Basicis) $app
(\Model) $model
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface
Description
public getModelByAnnotation (void)
Function getModelByAnnotation Get annotations model class
Parameters
This function has no parameters.
Return Values
string|null
Description
public index (\Basicis\Basicis $app, object $args)
Function index Default method
Parameters
(\Basicis\Basicis) $app
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface
Description
public update (\Basicis\Basicis $app, \Model $model, object $args)
Function update Update a model of the specified class
Parameters
(\Basicis\Basicis) $app
(\Model) $model
(object) $args
Return Values
\Psr\Http\Message\ResponseInterface