service/core/REST/SugarRestJSON.php
Constants
Package: SugarCRMThis class is a JSON implementation of REST protocol
- Parent(s)
-
\SugarRestSerialize
<
\SugarRest
- Api
-
Methods



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



generateResponse(
array $input
)
:
StringIt will json encode the input object and echo's it
Parameters
| Name |
Type |
Description |
| $input |
array |
- assoc array of input values: key = param name, value = param type
|
Returns
| Type |
Description |
| String |
- echos json encoded string of $input |



serve(
)
:
\unknownThis method calls functions on the implementation class and returns the output or Fault object in case of error to client
Returns
| Type |
Description |
| \unknown |
|