OP\EBSResponse
Class used to respond with JSON requests. Supports debugging.
Synopsis
class EBSResponse
{
- // methods
- public void __construct()
- public json Content()
- public int Code()
- public string Raw()
- private DataList|null parseobject()
- public DataList|null Data()
- public DataList|null Errors()
- public HTML debug()
Members
private
- $code
- $content
- $error
- $raw
- $url
Methods
private
- parseobject() — Recursivity creates the SilverStripe dataobject representation of content
public
- __construct()
- Code() — 400 error. 500 server error. 200 OK etc.
- Content() — JSON array of the result of the response
- Data() — Returns SilverStripe object representations of content
- Errors() — Returns SilverStripe object representations of content
- Raw() — Raw content
- debug() — Makes debugging the webservice more human readable