\FuelSdkET_Constructor

This class represents the contructor for all web service (SOAP/REST) operation and holds HTTP status code, response, result, etc.

Summary

Methods
Properties
Constants
__construct()
$status
$code
$message
$results
$request_id
$moreResults
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$status

$status : boolean

Type

boolean — holds the status of the web service operation: true=success, false=failure

$code

$code : integer

Type

integer — holds the HTTP status code e.g. 200, 404, etc

$message

$message : string

Type

string — holds error message for SOAP call, else holds raw response if json_decode fails

$results

$results : \FuelSdk\stdClass

Type

\FuelSdk\stdClass — Object contains the complete result of the web service operation

$request_id

$request_id : string

Type

string — the request identifier

$moreResults

$moreResults : boolean

Type

boolean — whether more results are available or not

Methods

__construct()

__construct(string  $requestresponse, integer  $httpcode, boolean  $restcall = false) 

Initializes a new instance of the class.

Parameters

string $requestresponse

The response from the request

integer $httpcode

The HTTP status code e.g. 200, 404. etc

boolean $restcall

Whether to make REST or SOAP call, default is false i.e. SOAP calls