Documentation

IndexController extends z_controller
in package

The index controller handles by default all requests without a specified controller

Table of Contents

action_index()  : mixed
The index action
makeCEDFood()  : mixed
Makes food edible for CED fields
makeFood()  : mixed
Makes food edible for input selects

Methods

action_index()

The index action

public action_index(Request $req, Response $res) : mixed

It will be called when no action is specified

Parameters
$req : Request

The request object

$res : Response

The response object

Return values
mixed

makeCEDFood()

Makes food edible for CED fields

public makeCEDFood(array<string|int, mixed> $table, array<string|int, mixed> $fields[, mixed $escape = null ]) : mixed
Parameters
$table : array<string|int, mixed>

Table

$fields : array<string|int, mixed>

Fields of the array to get to the client

$escape : mixed = null
Return values
mixed

makeFood()

Makes food edible for input selects

public makeFood(array<string|int, mixed> $table, string $valueField, string $textField[, mixed $optionalTextField = null ]) : mixed
Parameters
$table : array<string|int, mixed>

Database table result

$valueField : string

Row that is used as value

$textField : string

Row that is shown to the client as text

$optionalTextField : mixed = null
Return values
mixed

Search results