modules/Connectors/connectors/sources/ext/soap/hoovers/hoovers.php
Constants
\ext_soap_hoovers
ext_soap This class is the soap implementation for the connector framework.
Connectors that use SOAP calls should subclass this class and provide a getList and getItem method override to return results from the connector
Properties
$_client= ''
- Type
- n/a
- Inherited_from
- \ext_soap::$$_client
\_eapm
$_eapm= 'null'
The ExternalAPI Base that instantiated this connector.
Inherited from: \source::$$_eapm\ext_soap::$$_eapmnull
Details- Type
- \_eapm
- Inherited_from
- \source::$$_eapm
- Inherited_from
- \ext_soap::$$_eapm
bool
$_enable_in_admin_display= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_display
- Inherited_from
- \ext_soap::$$_enable_in_admin_display
bool
$_enable_in_admin_mapping= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_mapping
- Inherited_from
- \ext_soap::$$_enable_in_admin_mapping
bool
$_enable_in_admin_properties= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_properties
- Inherited_from
- \ext_soap::$$_enable_in_admin_properties
bool
$_enable_in_admin_search= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_search
- Inherited_from
- \ext_soap::$$_enable_in_admin_search
bool
$_enable_in_hover= 'false'
false
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_hover
- Inherited_from
- \ext_soap::$$_enable_in_hover
bool
$_enable_in_wizard= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_wizard
- Inherited_from
- \ext_soap::$$_enable_in_wizard
$_field_defs= ''
- Type
- n/a
- Inherited_from
- \source::$$_field_defs
- Inherited_from
- \ext_soap::$$_field_defs
bool
$_has_testing_enabled= 'false'
false
Details- Type
- bool
- Inherited_from
- \source::$$_has_testing_enabled
- Inherited_from
- \ext_soap::$$_has_testing_enabled
$_mapping= ''
- Type
- n/a
- Inherited_from
- \source::$$_mapping
- Inherited_from
- \ext_soap::$$_mapping
$_required_config_fields= 'array()'
array()
Details- Type
- n/a
- Inherited_from
- \source::$$_required_config_fields
- Inherited_from
- \ext_soap::$$_required_config_fields
$_required_config_fields_for_button= 'array()'
array()
Details- Type
- n/a
- Inherited_from
- \source::$$_required_config_fields_for_button
- Inherited_from
- \ext_soap::$$_required_config_fields_for_button
$config_decrypted= 'false'
false
Details- Type
- n/a
- Inherited_from
- \source::$$config_decrypted
- Inherited_from
- \ext_soap::$$config_decrypted
$wrapperName= ''
The name of an wrapper to use if the class wants to provide an override
Inherited from: \source::$$wrapperName\ext_soap::$$wrapperName- Type
- n/a
- Inherited_from
- \source::$$wrapperName
- Inherited_from
- \ext_soap::$$wrapperName
Methods
createPayloadOverride(
$function, $args
)
:
void
createPayloadOverride
Name | Type | Description |
---|---|---|
$function | ||
$args |
filterAllowedModules(
array $moduleList
)
:
array
Filter which modules are allowed to connect
Inherited from: \source::filterAllowedModules()\ext_soap::filterAllowedModules()Name | Type | Description |
---|---|---|
$moduleList | array |
Type | Description |
---|---|
array | Allowed modules |
formatListResult(
Array $data
)
:
Array
formatListResult This is a private helper function to ensure that list results are correctly matched to the vardef key entries
Name | Type | Description |
---|---|---|
$data | Array | data entry for list result from parseListResult function |
Type | Description |
---|---|
Array | formatted data entry with the correct vardef keys |
getFieldsWithParams(
string $param_name, string $param_value
)
:
array
Given a parameter in a vardef field, return the list of fields that match the param and value
Inherited from: \source::getFieldsWithParams()\ext_soap::getFieldsWithParams()Name | Type | Description |
---|---|---|
$param_name | string | |
$param_value | string |
Type | Description |
---|---|
array |
getItem(
\$args $args
=
array(), \$module $module
=
null
)
:
\$result
getItem This is the Hoovers implementation of the getItem method
Name | Type | Description |
---|---|---|
$args | \$args | Array of input/search parameters |
$module | \$module | String value of the module we are mapping input arguments from |
Type | Description |
---|---|
\$result | Array of result based on the search results from the given arguments |
getList(
\$args $args
=
array(), \$module $module
=
null
)
:
\$result
getList This is the Hoovers implementation of the getList method
Name | Type | Description |
---|---|---|
$args | \$args | Array of input/search parameters |
$module | \$module | String value of the module we are mapping input arguments from |
Type | Description |
---|---|
\$result | Array of results based on the search results from the given arguments |
getLookupValue(
String $category
=
'', String $value
=
''
)
:
String
getLookupValue This method returns the lookup value used by Hoovers based on the mapping file of the search parameters created
Name | Type | Description |
---|---|---|
$category | String | String value of the category (countries, states) |
$value | String | String value of the value to lookup |
Type | Description |
---|---|
String | $lookupValue String value that should be used for lookup |
getRequiredConfigFields(
)
:
\$fields
getRequiredConfigFields This method returns an Array of the configuration keys that are required for the Connector.
Inherited from: \source::getRequiredConfigFields()\ext_soap::getRequiredConfigFields()Subclasses should set the class variable _required_config_fields to return an Array of keys as specified in the Connector's config.php that are required.
Type | Description |
---|---|
\$fields | Array of Connector config fields that are required |
getRequiredConfigFieldsForButton(
)
:
\$fields
getRequiredConfigFieldsForButton This method returns an Array of the configuration keys that are required before the "Get Data" button will include the Connector. We use it as a subset of the $this->_required_config_fields Array.
Inherited from: \source::getRequiredConfigFieldsForButton()\ext_soap::getRequiredConfigFieldsForButton()Type | Description |
---|---|
\$fields | Array of Connector config fields that are required to be set for the "Get Data" button to appear |
hasTestingEnabled(
)
:
\enabled
hasTestingEnabled This method is used to indicate whether or not a data source has testing enabled so that the administration interface may call the test method on the data source instance
Inherited from: \source::hasTestingEnabled()\ext_soap::hasTestingEnabled()Type | Description |
---|---|
\enabled | boolean value indicating whether or not testing is enabled |
initConfig(
)
:
void
Initialize config - decrypt encrypted fields
Inherited from: \source::initConfig()\ext_soap::initConfig()isEnabledInAdminDisplay(
)
:
boolean
isEnabledInAdminDisplay This method indicates whether or not the connector should be shown in the Enable Connectors view.
Inherited from: \source::isEnabledInAdminDisplay()\ext_soap::isEnabledInAdminDisplay()The Admin views call each source's isEnabledInAdminDisplay method to verify whether or not the connector should be displayed. Connectors that do not have any administrative display settings should set the protected class variable _enable_in_admin_display to false.
Type | Description |
---|---|
boolean | value indicating whether or not the connector is enabled for admin views |
isEnabledInAdminMapping(
)
:
boolean
isEnabledInAdminMapping This method indicates whether or not the connector should be shown in the Map Connector Fields view.
Inherited from: \source::isEnabledInAdminMapping()\ext_soap::isEnabledInAdminMapping()The Admin views call each source's isEnabledInAdminMapping method to verify whether or not the connector should be displayed. Connectors that do not have any administrative mapping properties should set the protected class variable _enable_in_admin_mapping to false.
Type | Description |
---|---|
boolean | value indicating whether or not the connector is enabled for admin views |
isEnabledInAdminProperties(
)
:
boolean
isEnabledInAdminProperties This method indicates whether or not the connector should be shown in the Set Connector Properties view.
Inherited from: \source::isEnabledInAdminProperties()\ext_soap::isEnabledInAdminProperties()The Admin views call each source's isEnabledInAdminProperties method to verify whether or not the connector should be displayed. Connectors that do not have any administrative properties should set the protected class variable _enable_in_admin_properties to false.
Type | Description |
---|---|
boolean | value indicating whether or not the connector is enabled for admin views |
isEnabledInAdminSearch(
)
:
boolean
isEnabledInAdminSearch This method indicates whether or not the connector should be shown in the Manage Connectors Search view.
Inherited from: \source::isEnabledInAdminSearch()\ext_soap::isEnabledInAdminSearch()The Admin views call each source's isEnabledInAdminSearch method to verify whether or not the connector should be displayed. Connectors that do not have any administrative search settings should set the protected class variable _enable_in_admin_search to false.
Type | Description |
---|---|
boolean | value indicating whether or not the connector is enabled for admin views |
isEnabledInHover(
)
:
\$enabled
isEnabledInHover This method indicates whether or not the connector should be enabled for the hover links Connectors that do not provide a formatter implementation should not set the protected class variable _enable_in_hover to true.
Inherited from: \source::isEnabledInHover()\ext_soap::isEnabledInHover()Type | Description |
---|---|
\$enabled | boolean variable indicating whether or not the connector is enabled for the hover links |
isEnabledInWizard(
)
:
\$enabled
isEnabledInWizard This method indicates whether or not the connector should be enabled in the wizard Connectors that do not support the getList/getItem methods via API calls should set the protected class variable _enable_in_wizard to false.
Inherited from: \source::isEnabledInWizard()\ext_soap::isEnabledInWizard()Type | Description |
---|---|
\$enabled | boolean variable indicating whether or not the connector is enabled for the wizard |
isRequiredConfigFieldsForButtonSet(
)
:
\$set
isRequiredConfigFieldsForButtonSet This method checks the configuration parameters against the required config fields for the "Get Button" to see if they are set
Inherited from: \source::isRequiredConfigFieldsForButtonSet()\ext_soap::isRequiredConfigFieldsForButtonSet()Type | Description |
---|---|
\$set | boolean value indicating whether or not the required config fields are set |
isRequiredConfigFieldsSet(
)
:
\$set
isRequiredConfigFieldsSet This method checks the configuration parameters against the required config fields to see if they are set
Inherited from: \source::isRequiredConfigFieldsSet()\ext_soap::isRequiredConfigFieldsSet()Type | Description |
---|---|
\$set | boolean value indicating whether or not the required config fields are set |
loadConfig(
)
:
void
Load config.php for this source
Inherited from: \source::loadConfig()\ext_soap::loadConfig()obj2array(
\$obj $obj
)
:
\$out
obj2array Given an object, returns the object as an Array
Inherited from: \ext_soap::obj2array()Name | Type | Description |
---|---|---|
$obj | \$obj | Object to convert to an array |
Type | Description |
---|---|
\$out | Array reflecting the object's properties |
parseListResults(
\$result $result
)
:
\$result
parseListResults Internal private method to handle distinguishing the Hoovers SOAP call results.
There are subtle differences when one company result is returned versus multiple company results.
Name | Type | Description |
---|---|---|
$result | \$result | Array of results in list format |
Type | Description |
---|---|
\$result | Formatted results |
propertyExists(
string $name
)
:
bool
Check if certain property contains non-empty value
Inherited from: \source::propertyExists()\ext_soap::propertyExists()Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
bool |
saveConfig(
)
:
void
Save source's config to custom directory
Inherited from: \source::saveConfig()\ext_soap::saveConfig()setClient(
object $client
)
:
void
Set client implementation for tests
Name | Type | Description |
---|---|---|
$client | object |