include/externalAPI/Base/OAuthPluginBase.php

Show: inherited
Table of Contents

\OAuthPluginBase

Package: SugarCRM

External API based on OAuth

Parent(s)
\ExternalAPIBase < \ExternalAPIPlugin
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
Inherited_from
\ExternalAPIBase::$$_appStringErrorPrefix  
Propertypublic  $account_name= ''
inheritedInherited from: \ExternalAPIBase::$$account_name
Details
Type
n/a
Inherited_from
\ExternalAPIBase::$$account_name  
Propertypublic  $account_password= ''
inheritedInherited from: \ExternalAPIBase::$$account_password
Details
Type
n/a
Inherited_from
\ExternalAPIBase::$$account_password  
Propertyprotected\EAPM  $authData= ''
inherited

Authorization data

Inherited from: \ExternalAPIBase::$$authData
Details
Type
\EAPM
Inherited_from
\ExternalAPIBase::$$authData  
Propertypublic  $authMethod= ''oauth''
Default value'oauth'Details
Type
n/a
Propertyprotected  $oauthParams= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $oauth_keys_initialized= 'false'
Default valuefalseDetails
Type
n/a
Propertypublic  $requireAuth= 'true'
inheritedInherited from: \ExternalAPIBase::$$requireAuth
Default valuetrueDetails
Type
n/a
Inherited_from
\ExternalAPIBase::$$requireAuth  
Propertypublic  $useAuth= 'true'
inheritedInherited from: \ExternalAPIBase::$$useAuth
Default valuetrueDetails
Type
n/a
Inherited_from
\ExternalAPIBase::$$useAuth  

Methods

methodpublic__construct( ) : void

methodpubliccheckLogin( \EAPM $eapmBean = null ) : void

Check login

Parameters
Name Type Description
$eapmBean \EAPM
Details
See
\ExternalAPIBase::checkLogin()  
methodprotectedcheckOauthLogin( ) : void

methodprotectedformatCallbackURL( \$callback_url $callback_url ) : String
inherited

formatCallbackURL

Inherited from: \ExternalAPIBase::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
inherited

Get connector for this API

Inherited from: \ExternalAPIBase::getConnector()
Returns
Type Description
\source | null
methodpublicgetConnectorParam( string $name ) : mixed
inherited

Get parameter from source

Inherited from: \ExternalAPIBase::getConnectorParam()
Parameters
Name Type Description
$name string
Returns
Type Description
mixed
methodprotectedgetErrorStringFromCode( \unknown_type $error_numb ) : void
inherited

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

Inherited from: \ExternalAPIBase::getErrorStringFromCode()
Parameters
Name Type Description
$error_numb \unknown_type
methodpublicgetOauth( ) : \SugarOauth

Get OAuth client

Returns
Type Description
\SugarOauth
methodpublicgetOauthAccessURL( ) : void

methodpublicgetOauthAuthURL( ) : void

methodpublicgetOauthParams( ) : void

methodpublicgetOauthRequestURL( ) : void

methodprotectedgetValue(  $value ) : void
inherited

Inherited from: \ExternalAPIBase::getValue()
Parameters
Name Type Description
$value
methodpublicisMimeDetectionAvailable( ) : bool
inherited

Determine if mime detection extensions are available.

Inherited from: \ExternalAPIBase::isMimeDetectionAvailable()
Returns
Type Description
bool
methodpublicloadEAPM( \EAPM $eapmBean ) : void

Load data from EAPM bean

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

Inherited from: \ExternalAPIBase::logOff()
methodpublicoauthLogin( ) : void

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

Inherited from: \ExternalAPIBase::postData()
Parameters
Name Type Description
$url
$postfields
$headers
methodpublicquickCheckLogin( ) : void

methodpublicsetupOauthKeys( ) : void

Setup oauth parameters from connector

methodpublicsupports(  $method = '' ) : void
inherited

Does API support this method?

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