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
)
:
voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $implementation | String |
|

fault(
\SoapError $errorObject
)
:
voidThis function sends response to client containing error object
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $errorObject | \SoapError |
|
- Access
- public

generateResponse(
array $input
)
:
StringIt will json encode version of the input object
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $input | array |
|
| Type | Description |
|---|---|
| String | - print's $input object |