Documentation

JsonOutputController extends OutputController

Output controller for JSON format

Tags
copyright

Cloudrexx AG

author

Michael Ritter michael.ritter@cloudrexx.com

subpackage

core_modules_dataaccess

Table of Contents

Properties

$cx  : Cx
Main class instance

Methods

__call()  : mixed
Route methods like getName(), getType(), getDirectory(), etc.
__construct()  : mixed
Creates new controller
getSystemComponentController()  : SystemComponentController
Returns the main controller
parse()  : string
Returns the JSON encoded data

Properties

Methods

__call()

Route methods like getName(), getType(), getDirectory(), etc.

public __call(string $methodName, array<string|int, mixed> $arguments) : mixed
Parameters
$methodName : string

Name of method to call

$arguments : array<string|int, mixed>

List of arguments for the method to call

Attributes
#[ReturnTypeWillChange]
Return values
mixed

Return value of the method to call

parse()

Returns the JSON encoded data

public parse(array<string|int, mixed> $data) : string
Parameters
$data : array<string|int, mixed>

Data to encode

Tags
todo:

Handle encoding (json_encode() fails for non-UTF8 contents)

Return values
string

Encoded data


        
On this page

Search results