service/core/SugarRestService.php
Constants
\SugarRestService
Package: SugarCRM
Base class for rest services
All type of web services should provide proper implementation of all the abstract methods
- Parent(s)
- \SugarWebService
Properties

$excludeFunctions= 'array()'
inheritedInherited from:
\SugarWebService::$$excludeFunctions
Default value
array()Details- Type
- n/a
- Inherited_from
- \SugarWebService::$$excludeFunctions

$server= 'null'
inheritedInherited from:
\SugarWebService::$$server
Default value
nullDetails- Type
- n/a
- Inherited_from
- \SugarWebService::$$server
Methods

_getTypeName(
string $name
)
:
stringGet Sugar REST class name for input/return type
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| string |

error(
\SoapError $errorObject
)
:
voidThis function sets the fault object on the REST
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $errorObject | \SoapError |
|
- Access
- public

getRegisteredClass(
)
:
StringThis mehtod returns registry class
Returns
Details
| Type | Description |
|---|---|
| String | - registryClass |
- Access
- public

getRegisteredImplClass(
)
:
StringThis mehtod returns registered implementation class
Returns
Details
| Type | Description |
|---|---|
| String | - implementationClass |
- Access
- public

getServer(
)
:
StringThis mehtod returns server
Returns
Details
| Type | Description |
|---|---|
| String | - server |
- Access
- public

register(
Array $excludeFunctions
=
array()
)
:
voidEnter description here...
Parameters
| Name | Type | Description |
|---|---|---|
| $excludeFunctions | Array |
|

registerClass(
String $registryClass
)
:
voidSets the name of the registry class
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $registryClass | String |
- Access
- public

registerFunction(
String $function, Array $input, Array $output
)
:
voidThis method registers all the functions you want to expose as services with REST
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $function | String |
|
| $input | Array |
|
| $output | Array |
|
- Access
- public

registerImplClass(
$className
)
:
voidThis function registers implementation class name and creates an instance of rest implementation class it will be made on this class object
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $className |
- Access
- public

registerType(
$name, $typeClass, $phpType, $compositor, $restrictionBase, $elements, $attrs, $arrayType
)
:
voidIts a no op method
Parameters
Details
| Name | Type | Description |
|---|---|---|
| $name | ||
| $typeClass | ||
| $phpType | ||
| $compositor | ||
| $restrictionBase | ||
| $elements | ||
| $attrs | ||
| $arrayType |
- Access
- public