z_controller
in package
Base class for all controllers. Controllers should inherit from this class.
Table of Contents
- makeCEDFood() : mixed
- Makes food edible for CED fields
- makeFood() : mixed
- Makes food edible for input selects
Methods
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