modules/Connectors/connectors/sources/ext/eapm/facebook/facebook.php
\ext_eapm_facebook
source is the parent class of any source object.
- Parent(s)
- \source
Properties
$_config= ''
- Type
- n/a
- Inherited_from
- \source::$$_config
bool
$_enable_in_admin_display= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_display
bool
$_enable_in_admin_mapping= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_mapping
bool
$_enable_in_admin_properties= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_properties
bool
$_enable_in_admin_search= 'true'
true
Details- Type
- bool
- Inherited_from
- \source::$$_enable_in_admin_search
bool
$_enable_in_hover= 'false'
false
Details- Type
- bool
bool
$_enable_in_wizard= 'false'
false
Details- Type
- bool
$_field_defs= ''
- Type
- n/a
- Inherited_from
- \source::$$_field_defs
bool
$_has_testing_enabled= 'false'
false
Details- Type
- bool
$_mapping= ''
- Type
- n/a
- Inherited_from
- \source::$$_mapping
$_required_config_fields= 'array()'
array()
Details- Type
- n/a
- Inherited_from
- \source::$$_required_config_fields
$_required_config_fields_for_button= 'array()'
array()
Details- Type
- n/a
- Inherited_from
- \source::$$_required_config_fields_for_button
$config_decrypted= 'false'
false
Details- Type
- n/a
- Inherited_from
- \source::$$config_decrypted
$wrapperName= ''
The name of an wrapper to use if the class wants to provide an override
Inherited from: \source::$$wrapperName- Type
- n/a
- Inherited_from
- \source::$$wrapperName
Methods
filterAllowedModules(
array $moduleList
)
:
array
Filter which modules are allowed to connect
Inherited from: \source::filterAllowedModules()Name | Type | Description |
---|---|---|
$moduleList | array |
Type | Description |
---|---|
array | Allowed modules |
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()Name | Type | Description |
---|---|---|
$param_name | string | |
$param_value | string |
Type | Description |
---|---|
array |
getItem(
\$args $args
=
array(), \$module $module
=
null
)
:
Array
getItem Returns an array containing a key/value pair(s) of a connector record. To be overridden by the implementation source.
Name | Type | Description |
---|---|---|
$args | \$args | Array of arguments to search/filter by |
$module | \$module | String optional value of the module that the connector framework is attempting to map to |
Type | Description |
---|---|
Array | of key/value pair(s) of connector record; empty Array if no results are found |
getList(
\$args $args
=
array(), \$module $module
=
null
)
:
Array
getList Returns a nested array containing a key/value pair(s) of a connector record. To be overridden by the implementation source.
Name | Type | Description |
---|---|---|
$args | \$args | Array of arguments to search/filter by |
$module | \$module | String optional value of the module that the connector framework is attempting to map to |
Type | Description |
---|---|
Array | of key/value pair(s) of connector record; empty Array if no results are found |
getProperty(
$name
)
:
void
Name | Type | Description |
---|---|---|
$name |
getRequiredConfigFields(
)
:
\$fields
getRequiredConfigFields This method returns an Array of the configuration keys that are required for the Connector.
Inherited from: \source::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()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()Type | Description |
---|---|
\enabled | boolean value indicating whether or not testing is enabled |
isEnabledInAdminDisplay(
)
:
boolean
isEnabledInAdminDisplay This method indicates whether or not the connector should be shown in the Enable Connectors view.
Inherited from: \source::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()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()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()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()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()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()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()Type | Description |
---|---|
\$set | boolean value indicating whether or not the required config fields are set |
propertyExists(
string $name
)
:
bool
Check if certain property contains non-empty value
Inherited from: \source::propertyExists()Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
bool |
saveMappingHook(
$mapping
)
:
void
Name | Type | Description |
---|---|---|
$mapping |
setConfig(
$config
)
:
void
Name | Type | Description |
---|---|---|
$config |
setEAPM(
$eapm
)
:
void
Name | Type | Description |
---|---|---|
$eapm |
setMapping(
$mapping
)
:
void
Name | Type | Description |
---|---|---|
$mapping |
setProperties(
$properties
=
array()
)
:
void
Name | Type | Description |
---|---|---|
$properties |
test(
)
:
\result
test This method is called from the administration interface to run a test of the service It is up to subclasses to implement a test and set _has_testing_enabled to true so that a test button is rendered in the administration interface
Inherited from: \source::test()Type | Description |
---|---|
\result | boolean result of the test function |