\MslsJson

Container for an array which will used in JavaScript as object in JSON

Summary

Methods
Properties
Constants
add()
compare()
get()
encode()
__toString()
No public properties found
No constants found
No protected methods found
$arr
N/A
No private methods found
No private properties found
N/A

Properties

$arr

$arr : array

Container

Type

array

Methods

add()

add(int $value, string $label) : \MslsJson

add

Parameters

int $value
string $label

Returns

\MslsJson

compare()

compare(array $a, array $b) : int

compare

Compare the item with the key "label" of the array $a and the array $b

Parameters

array $a
array $b

Returns

int

get()

get() : array

get

Get the array container sorted by label

Returns

array

encode()

encode() : string

encode

Encodes object and returns it as a json-string

Returns

string

__toString()

__toString() : string

__toString

Return the encoded object as a string using the encode-method

Returns

string