service/core/REST/SugarRest.php
Constants
\SugarRest
Package: SugarCRM
This class is a base class implementation of REST protocol
- Children
- \SugarRestSerialize
- \SugarRestRSS
- Api
Methods
__construct(
String $implementation
)
:
void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$implementation | String |
|
fault(
\SoapError $errorObject
)
:
void
This function sends response to client containing error object
Parameters
Details
Name | Type | Description |
---|---|---|
$errorObject | \SoapError |
|
- Access
- public
generateResponse(
array $input
)
:
String
It will json encode version of the input object
Parameters
Returns
Name | Type | Description |
---|---|---|
$input | array |
|
Type | Description |
---|---|
String | - print's $input object |