LimeSurvey API - Master branch

BigData
in package

Class containing helper functions for dealing with "big data".

Tags
author

Sam Mousa sam@befound.nl

Table of Contents

Methods

json_echo()  : mixed
This function combines json_encode and echo.
xmlrpc_echo()  : mixed
This function encodes PHP data to an XMLRPC response.
hasStream()  : mixed
isAssociative()  : mixed
isStream()  : mixed
json_echo_array()  : mixed
json_echo_data()  : mixed
json_echo_number()  : mixed
json_echo_object()  : mixed
json_echo_stream()  : mixed
json_echo_string()  : mixed
tag()  : mixed
xmlrpc_echo_array()  : mixed
xmlrpc_echo_number()  : mixed
Prints XMLRPC numeric types.
xmlrpc_echo_object()  : mixed
xmlrpc_echo_stream()  : mixed
xmlrpc_echo_string()  : mixed

Methods

json_echo()

This function combines json_encode and echo.

public static json_echo(array<string|int, mixed> $json[, int $options = 0 ]) : mixed

If a stream is passed (or is part of the array) it's content will be directly streamed instead of reading it into memory first. Supported flags: JSON_FORCE_OBJECT

Parameters
$json : array<string|int, mixed>
$options : int = 0

Same flags used in JSON_ENCODE.

xmlrpc_echo()

This function encodes PHP data to an XMLRPC response.

public static xmlrpc_echo(mixed $data) : mixed
Parameters
$data : mixed

hasStream()

protected static hasStream(mixed $result, mixed $item) : mixed
Parameters
$result : mixed
$item : mixed

isAssociative()

protected static isAssociative(mixed $array) : mixed
Parameters
$array : mixed

isStream()

protected static isStream(mixed $item) : mixed
Parameters
$item : mixed

json_echo_array()

protected static json_echo_array(mixed $json) : mixed
Parameters
$json : mixed

json_echo_data()

protected static json_echo_data(mixed $json) : mixed
Parameters
$json : mixed

json_echo_number()

protected static json_echo_number(mixed $json) : mixed
Parameters
$json : mixed

json_echo_object()

protected static json_echo_object(mixed $json) : mixed
Parameters
$json : mixed

json_echo_string()

protected static json_echo_string(string $json) : mixed
Parameters
$json : string

tag()

protected static tag(string $name, mixed $data) : mixed
Parameters
$name : string
$data : mixed

xmlrpc_echo_array()

protected static xmlrpc_echo_array(mixed $data) : mixed
Parameters
$data : mixed

xmlrpc_echo_number()

Prints XMLRPC numeric types.

protected static xmlrpc_echo_number(type $data) : mixed
Parameters
$data : type

xmlrpc_echo_object()

protected static xmlrpc_echo_object(mixed $data) : mixed
Parameters
$data : mixed

xmlrpc_echo_stream()

protected static xmlrpc_echo_stream(mixed $data) : mixed
Parameters
$data : mixed

xmlrpc_echo_string()

protected static xmlrpc_echo_string(string $data) : mixed
Parameters
$data : string

        
On this page

Search results