Was this article helpful?

Class GSArray

Last modified 15:42, 22 Apr 2013
Table of Contents

Used for passing Arrays, for example when issuing requests or receiving response data.
The value may be one of the following types:


Constructor Summary

Constructor Description
GSArray() Empty constructor
GSArray(string $json) Construct a GSArray from a JSON string. Throws an Exception if unable to parse the JSON string.


Method Summary

Return Method Description
void add(mixed $value) Adds a value to the array.
integer getInt(integer $index)
Type specific methods for retrieving value by index.
long getLong(integer $index)
double getDouble(integer $index)
Boolean getBool(integer $index)
string getString(integer $index)
GSObject getObject(integer $index)
GSArray getArray(integer $index)
integer length() Returns the array's length.
string toJsonString() Returns the array's content as a JSON string.
string toString() Returns the array's content as a JSON string.
Was this article helpful?
Pages that link here
Page statistics
2597 view(s) and 2 edit(s)
Social share
Share this page?


This page has no custom tags set.


You must to post a comment.