service/core/REST/SugarRestJSON.php

Show: inherited
Table of Contents

Constants

Constant  sugarEntry = true

\SugarRestJSON

Package: SugarCRM

This class is a JSON implementation of REST protocol

Parent(s)
\SugarRestSerialize < \SugarRest
Api
 

Methods

methodpublic__construct( String $implementation ) : void
Parameters
Name Type Description
$implementation String
  • name of the implementation class
methodpublicfault( \SoapError $errorObject ) : void

This function sends response to client containing error object

Parameters
Name Type Description
$errorObject \SoapError
  • This is an object of type SoapError
Details
Access
public  
methodpublicgenerateFaultResponse(  $errorObject ) : void

Parameters
Name Type Description
$errorObject
methodpublicgenerateResponse( array $input ) : String

It 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
methodpublicserve( ) : \unknown

This method calls functions on the implementation class and returns the output or Fault object in case of error to client

Returns
Type Description
\unknown
Documentation was generated by DocBlox 0.18.1.