include/externalAPI/Base/ExternalAPIBase.php

Show: inherited
Table of Contents

\ExternalAPIBase

Package: SugarCRM

Base implementation for external API

Parent(s)
\ExternalAPIPlugin
Children
\OAuthPluginBase
Api
 

Constants

Constant  APP_STRING_ERROR_PREFIX = 'ERR_EXTERNAL_API_'

Properties

Propertyprotected  $_appStringErrorPrefix= 'self::APP_STRING_ERROR_PREFIX'
Default valueself::APP_STRING_ERROR_PREFIXDetails
Type
n/a
Propertypublic  $account_name= ''
Details
Type
n/a
Propertypublic  $account_password= ''
Details
Type
n/a
Propertyprotected\EAPM  $authData= ''

Authorization data

Details
Type
\EAPM
Propertypublic  $authMethod= ''password''
Default value'password'Details
Type
n/a
Propertypublic  $requireAuth= 'true'
Default valuetrueDetails
Type
n/a
Propertypublic  $useAuth= 'true'
Default valuetrueDetails
Type
n/a

Methods

methodpubliccheckLogin( \EAPM $eapmBean = null ) : void

Check login

Parameters
Name Type Description
$eapmBean \EAPM
Details
See
\ExternalAPIPlugin::checkLogin()  
methodprotectedformatCallbackURL( \$callback_url $callback_url ) : String

formatCallbackURL

This function takes a callback_url and checks the $_REQUEST variable to see if additional parameters should be appended to the callback_url value. The $_REQUEST variables that are being checked deal with handling the behavior of closing/hiding windows/tabs that are displayed when prompting for OAUTH validation

Parameters
Name Type Description
$callback_url \$callback_url

String value of callback URL

Returns
Type Description
String value of URL with applicable formatting
methodpublicgetConnector( ) : \source | null

Get connector for this API

Returns
Type Description
\source | null
methodpublicgetConnectorParam( string $name ) : mixed

Get parameter from source

Parameters
Name Type Description
$name string
Returns
Type Description
mixed
methodprotectedgetErrorStringFromCode( \unknown_type $error_numb ) : void

Allow API clients to provide translated language strings for a given error code

Parameters
Name Type Description
$error_numb \unknown_type
methodprotectedgetValue(  $value ) : void

Parameters
Name Type Description
$value
methodpublicisMimeDetectionAvailable( ) : bool

Determine if mime detection extensions are available.

Returns
Type Description
bool
methodpublicloadEAPM( \EAPM $eapmBean ) : void

Load authorization data

Parameters
Name Type Description
$eapmBean \EAPM
Details
See
\ExternalAPIPlugin::loadEAPM()  
methodpubliclogOff( ) : void

methodprotectedpostData(  $url,  $postfields,  $headers ) : void

Parameters
Name Type Description
$url
$postfields
$headers
methodpublicquickCheckLogin( ) : void

methodpublicsupports(  $method = '' ) : void

Does API support this method?

Parameters
Name Type Description
$method
Details
See
\ExternalAPIPlugin::supports()  
Documentation was generated by DocBlox 0.18.1.