Documentation

ZController extends z_controller
in package

The ZController contains actions for the admin dashboard / panel

Table of Contents

action_add_user()  : mixed
Action for adding a user
action_database()  : mixed
action_edit_user()  : mixed
Action for editing a user
action_index()  : mixed
Serves an empty index page with the admin layout
action_log()  : mixed
Action for seeing the logs
action_login_as()  : mixed
Action for logging in as someone else
action_roles()  : mixed
Action for the role configuration page
makeCEDFood()  : mixed
Makes food edible for CED fields
makeFood()  : mixed
Makes food edible for input selects

Methods

action_add_user()

Action for adding a user

public action_add_user(Request $req, Response $res) : mixed
Parameters
$req : Request

The request object

$res : Response

The response object

Return values
mixed

action_edit_user()

Action for editing a user

public action_edit_user(Request $req, Response $res) : mixed
Parameters
$req : Request

The request object

$res : Response

The response object

Return values
mixed

action_index()

Serves an empty index page with the admin layout

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

The request object

$res : Response

The response object

Return values
mixed

action_log()

Action for seeing the logs

public action_log(Request $req, Response $res) : mixed
Parameters
$req : Request

The request object

$res : Response

The response object

Return values
mixed

action_login_as()

Action for logging in as someone else

public action_login_as(Request $req, Response $res) : mixed
Parameters
$req : Request

The request object

$res : Response

The response object

Return values
mixed

action_roles()

Action for the role configuration page

public action_roles(Request $req, Response $res) : mixed
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