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
null
Details- Type
- n/a
- Inherited_from
- \SugarWebService::$$server
Methods
_getTypeName(
string $name
)
:
string
Get Sugar REST class name for input/return type
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
string |
error(
\SoapError $errorObject
)
:
void
This function sets the fault object on the REST
Parameters
Details
Name | Type | Description |
---|---|---|
$errorObject | \SoapError |
|
- Access
- public
getRegisteredClass(
)
:
String
This mehtod returns registry class
Returns
Details
Type | Description |
---|---|
String | - registryClass |
- Access
- public
getRegisteredImplClass(
)
:
String
This mehtod returns registered implementation class
Returns
Details
Type | Description |
---|---|
String | - implementationClass |
- Access
- public
getServer(
)
:
String
This mehtod returns server
Returns
Details
Type | Description |
---|---|
String | - server |
- Access
- public
register(
Array $excludeFunctions
=
array()
)
:
void
Enter description here...
Parameters
Name | Type | Description |
---|---|---|
$excludeFunctions | Array |
|
registerClass(
String $registryClass
)
:
void
Sets the name of the registry class
Parameters
Details
Name | Type | Description |
---|---|---|
$registryClass | String |
- Access
- public
registerFunction(
String $function, Array $input, Array $output
)
:
void
This 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
)
:
void
This 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
)
:
void
Its a no op method
Parameters
Details
Name | Type | Description |
---|---|---|
$name | ||
$typeClass | ||
$phpType | ||
$compositor | ||
$restrictionBase | ||
$elements | ||
$attrs | ||
$arrayType |
- Access
- public