Sunnysideup\Moodle\Api\MoodleResponse
class used to respond with JSON requests.
Synopsis
class MoodleResponse
{
- // methods
- public void __construct()
- public void hasError()
- public void isSuccess()
- public void getError()
- public string getContent()
- public null|DataList|DataObject getSilverstripeObject()
- public void getContentAsArray()
- private null|DataList|DataObject parseobject()
Members
private
- $content
- $error
Methods
private
- parseobject() — Recursivity creates the SilverStripe dataobject represntation of content.
public
- __construct()
- getContent() — JSON array of the result of the response.
- getContentAsArray()
- getError()
- getSilverstripeObject() — Returns SilverStripe object representations of content.
- hasError()
- isSuccess()