BigData

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

author

Sam Mousa sam@befound.nl

package

Default

Methods

hasStream

hasStream( &$result, $item)
static

Arguments

$result

$item

isAssociative

isAssociative( $array)
static

Arguments

$array

isStream

isStream( $item)
static

Arguments

$item

This function combines json_encode and echo.

json_echo(array $json,integer $options)
static

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

Arguments

$json

array

$options

integer

Same flags used in JSON_ENCODE.

json_echo_array

json_echo_array( $json)
static

Arguments

$json

json_echo_data

json_echo_data( $json)
static

Arguments

$json

json_echo_number

json_echo_number( $json)
static

Arguments

$json

json_echo_object

json_echo_object( $json)
static

Arguments

$json

json_echo_stream

json_echo_stream(\BigFile $data)
static

Arguments

$data

\BigFile

json_echo_string

json_echo_string(string $json)
static

Arguments

$json

string

tag

tag(string $name, $data)
static

Arguments

$name

string

$data

This function encodes PHP data to an XMLRPC response.

xmlrpc_echo( $data)
static

Arguments

$data

xmlrpc_echo_array

xmlrpc_echo_array( $data)
static

Arguments

$data

Prints XMLRPC numeric types.

xmlrpc_echo_number(\type $data)
static

Arguments

$data

\type

xmlrpc_echo_object

xmlrpc_echo_object( $data)
static

Arguments

$data

xmlrpc_echo_stream

xmlrpc_echo_stream( $data)
static

Arguments

$data

xmlrpc_echo_string

xmlrpc_echo_string(string $data)
static

Arguments

$data

string