Documentation

OrbIntelligence extends Base
in package

Orb Intelligence by The Dun & Bradstreet class.

Table of Contents

LIMIT  = 4
$allowedModules  : array<string|int, string>
$description  : string
$displayType  : string
$docUrl  : string
$formFieldsToRecordMap  : mixed
{@inheritdoc}
$icon  : string
$label  : string
$moduleName  : string
$settingsFields  : array<string|int, mixed>
$addOnName  : string
$data  : array<string|int, mixed>
$fields  : mixed
var array List of fields for the modal search window.
$modulesFieldsMap  : array<string|int, mixed>
$name  : string
$paid  : bool
$request  : Request
$response  : array<string|int, mixed>
$url  : string
$apiKey  : string
__construct()  : mixed
Constructor.
getFields()  : array<string|int, Vtiger_Field_Model>
Get fields for the modal search window.
getFieldsLabelsByModule()  : array<string|int, string>
Get fields labels for the module name.
getFieldsModule()  : array<string|int, string>
Get fields for the module name.
getName()  : string
Get record collector name.
isActive()  : bool
Check whether it is active.
isAvailable()  : bool
Check if product is available.
loadData()  : void
Load data.
search()  : array<string|int, mixed>
Search data function.
setRequest()  : void
Set request.
getParams()  : array<string|int, mixed>
Get params of collector.
getDataFromApi()  : void
Function fetching company data by params.
loadConfig()  : void
Function setup Api Key.
parseData()  : array<string|int, mixed>
Function parsing data to fields from ORB Intelligence API.

Constants

Properties

$allowedModules

public array<string|int, string> $allowedModules = ['Accounts', 'Leads', 'Partners', 'Vendors', 'Competition']

Allowed modules.

$description

public string $description = 'LBL_ORB_DESC'

Additional description, visible in the modal window.

$displayType

public string $displayType = 'FillFields'

Search results display type.

$docUrl

public string $docUrl = 'https://api.orb-intelligence.com/'

Url to Documentation API

$formFieldsToRecordMap

{@inheritdoc}

public mixed $formFieldsToRecordMap = ['Accounts' => ['name' => 'accountname', 'eins0' => 'vat_id', 'website' => 'website', 'email' => 'email1', 'phone' => 'phone', 'sic_code' => 'siccode', 'cik' => 'registration_number_1', 'description' => 'description', 'addressAddress2' => 'buildingnumbera', 'addressAddress1' => 'addresslevel8a', 'addressZip' => 'addresslevel7a', 'addressCity' => 'addresslevel5a', 'addressState' => 'addresslevel2a', 'addressCountry' => 'addresslevel1a'], 'Leads' => ['name' => 'company', 'eins0' => 'vat_id', 'website' => 'website', 'email' => 'email', 'phone' => 'phone', 'cik' => 'registration_number_1', 'description' => 'description', 'addressAddress2' => 'buildingnumbera', 'addressAddress1' => 'addresslevel8a', 'addressZip' => 'addresslevel7a', 'addressCity' => 'addresslevel5a', 'addressState' => 'addresslevel2a', 'addressCountry' => 'addresslevel1a'], 'Partners' => ['name' => 'subject', 'eins0' => 'vat_id', 'email' => 'email', 'sic_code' => 'siccode', 'cik' => 'registration_number_1', 'description' => 'description', 'addressAddress2' => 'buildingnumbera', 'addressAddress1' => 'addresslevel8a', 'addressZip' => 'addresslevel7a', 'addressCity' => 'addresslevel5a', 'addressState' => 'addresslevel2a', 'addressCountry' => 'addresslevel1a'], 'Vendors' => ['name' => 'vendorname', 'eins0' => 'vat_id', 'website' => 'website', 'email' => 'email', 'phone' => 'phone', 'cik' => 'registration_number_1', 'description' => 'description', 'addressAddress2' => 'buildingnumbera', 'addressAddress1' => 'addresslevel8a', 'addressZip' => 'addresslevel7a', 'addressCity' => 'addresslevel5a', 'addressState' => 'addresslevel2a', 'addressCountry' => 'addresslevel1a'], 'Competition' => ['name' => 'subject', 'eins0' => 'vat_id', 'email' => 'email', 'cik' => 'registration_number_1', 'description' => 'description', 'addressAddress2' => 'buildingnumbera', 'addressAddress1' => 'addresslevel8a', 'addressZip' => 'addresslevel7a', 'addressCity' => 'addresslevel5a', 'addressState' => 'addresslevel2a', 'addressCountry' => 'addresslevel1a']]

$moduleName

public string $moduleName

Module name.

$settingsFields

public array<string|int, mixed> $settingsFields = ['api_key' => ['required' => 1, 'purifyType' => 'Text', 'label' => 'LBL_API_KEY']]

Configuration field list.

$addOnName

protected string $addOnName = ''

The name of Add-on.

$data

protected array<string|int, mixed> $data = []

Data from record collector source.

$fields

var array List of fields for the modal search window.

protected mixed $fields = ['country' => ['labelModule' => '_Base', 'label' => 'Country', 'typeofdata' => 'V~M', 'uitype' => 35], 'name' => ['labelModule' => '_Base', 'label' => 'Account Name'], 'vatNumber' => ['labelModule' => 'Other.RecordCollector', 'label' => 'LBL_ORB_VAT'], 'phone' => ['labelModule' => '_Base', 'label' => 'Phone'], 'email' => ['labelModule' => '_Base', 'label' => 'Email']]

$modulesFieldsMap

protected array<string|int, mixed> $modulesFieldsMap = ['Accounts' => ['name' => 'accountname', 'country' => 'addresslevel1a', 'vatNumber' => 'vat_id', 'email' => 'email1', 'phone' => 'phone'], 'Leads' => ['country' => 'addresslevel1a', 'name' => 'company', 'vatNumber' => 'vat_id', 'email' => 'email', 'phone' => 'phone', 'email' => 'email', 'phone' => 'phone'], 'Vendors' => ['country' => 'addresslevel1a', 'name' => 'vendorname', 'vatNumber' => 'vat_id', 'email' => 'email', 'phone' => 'phone'], 'Partners' => ['country' => 'addresslevel1a', 'name' => 'subject', 'vatNumber' => 'vat_id', 'email' => 'email', 'phone' => 'phone'], 'Competition' => ['country' => 'addresslevel1a', 'name' => 'subject', 'vatNumber' => 'vat_id', 'email' => 'email', 'phone' => 'phone']]

Fields mapping for loading record data.

$name

protected string $name

Record collector name.

$response

protected array<string|int, mixed> $response = []

Response data.

$url

protected string $url = 'https://api.orb-intelligence.com/'

ORB Intelligence sever address

Methods

__construct()

Constructor.

public __construct() : mixed
Return values
mixed

getFields()

Get fields for the modal search window.

public getFields() : array<string|int, Vtiger_Field_Model>
Return values
array<string|int, Vtiger_Field_Model>

getFieldsLabelsByModule()

Get fields labels for the module name.

public getFieldsLabelsByModule(string $moduleName) : array<string|int, string>
Parameters
$moduleName : string
Return values
array<string|int, string>

getFieldsModule()

Get fields for the module name.

public getFieldsModule(string $moduleName) : array<string|int, string>
Parameters
$moduleName : string
Return values
array<string|int, string>

getName()

Get record collector name.

public getName() : string
Return values
string

isActive()

Check whether it is active.

public isActive() : bool
Return values
bool

isAvailable()

Check if product is available.

public isAvailable() : bool
Return values
bool

loadData()

Load data.

public loadData() : void
Return values
void

Search data function.

public search() : array<string|int, mixed>
Return values
array<string|int, mixed>

setRequest()

Set request.

public setRequest(Request $request) : void
Parameters
$request : Request
Return values
void

getParams()

Get params of collector.

protected getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDataFromApi()

Function fetching company data by params.

private getDataFromApi(array<string|int, mixed> $query) : void
Parameters
$query : array<string|int, mixed>
Return values
void

loadConfig()

Function setup Api Key.

private loadConfig() : void
Return values
void

parseData()

Function parsing data to fields from ORB Intelligence API.

private parseData(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

        

Search results