service/core/REST/SugarRest.php

Show: inherited
Table of Contents

Constants

Constant  sugarEntry = true

\SugarRest

Package: SugarCRM

This class is a base class implementation of REST protocol

Children
\SugarRestSerialize
\SugarRestRSS
Api
 

Methods

methodpublic__construct( String $implementation ) : void

Constructor

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 version of the input object

Parameters
Name Type Description
$input array
  • assoc array of input values: key = param name, value = param type
Returns
Type Description
String - print's $input object
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.