Was this article helpful?

Class GSArray

Last modified 11:42, 15 Sep 2014
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
97 view(s) and 1 edit(s)
Social share
Share this page?

Tags

This page has no custom tags.

Comments

You must to post a comment.

Attachments