modules/Connectors/connectors/sources/ext/rest/twitter/twitter.php

Show: inherited
Table of Contents

\ext_rest_twitter

Package:

REST generic connector

Parent(s)
\ext_rest < \source

Properties

Propertyprotected  $_config= ''
inheritedInherited from: \source::$$_config\ext_rest::$$_config
Details
Type
n/a
Inherited_from
\source::$$_config  
Inherited_from
\ext_rest::$$_config  
Propertyprotected\_eapm  $_eapm= 'null'
inherited

The ExternalAPI Base that instantiated this connector.

Inherited from: \source::$$_eapm\ext_rest::$$_eapm
Default valuenullDetails
Type
\_eapm
Inherited_from
\source::$$_eapm  
Inherited_from
\ext_rest::$$_eapm  
Propertyprotectedbool  $_enable_in_admin_display= 'true'
inherited

enable_in_admin_display Boolean value marking whether or not this connector should appear in the Enable Connectors viewInherited from: \source::$$_enable_in_admin_display\ext_rest::$$_enable_in_admin_display
Default valuetrueDetails
Type
bool
Inherited_from
\source::$$_enable_in_admin_display  
Inherited_from
\ext_rest::$$_enable_in_admin_display  
Propertyprotectedbool  $_enable_in_admin_mapping= 'true'
inherited

enable_in_admin_mapping Boolean value marking whether or not this connector should be shown in the Modify Mapping viewInherited from: \source::$$_enable_in_admin_mapping\ext_rest::$$_enable_in_admin_mapping
Default valuetrueDetails
Type
bool
Inherited_from
\source::$$_enable_in_admin_mapping  
Inherited_from
\ext_rest::$$_enable_in_admin_mapping  
Propertyprotectedbool  $_enable_in_admin_properties= 'true'
inherited

enable_in_admin_properties Boolean value marking whether or not this connector should appear in the Set Connector Properties viewInherited from: \source::$$_enable_in_admin_properties\ext_rest::$$_enable_in_admin_properties
Default valuetrueDetails
Type
bool
Inherited_from
\source::$$_enable_in_admin_properties  
Inherited_from
\ext_rest::$$_enable_in_admin_properties  
Propertyprotectedbool  $_enable_in_admin_search= 'true'
inherited

enable_in_admin_search Boolean value marking whether or not this connector should appear in the Manage Connector Search viewInherited from: \source::$$_enable_in_admin_search\ext_rest::$$_enable_in_admin_search
Default valuetrueDetails
Type
bool
Inherited_from
\source::$$_enable_in_admin_search  
Inherited_from
\ext_rest::$$_enable_in_admin_search  
Propertyprotectedbool  $_enable_in_hover= 'false'
inherited

enable_in_hover Boolean value marking whether or not a hover link could be applied to the connectorInherited from: \source::$$_enable_in_hover\ext_rest::$$_enable_in_hover
Default valuefalseDetails
Type
bool
Inherited_from
\source::$$_enable_in_hover  
Inherited_from
\ext_rest::$$_enable_in_hover  
Propertyprotectedbool  $_enable_in_wizard= 'true'
inherited

enable_in_wizard Boolean value marking whether or not the connector may appear in the wizard (Get Data) viewsInherited from: \source::$$_enable_in_wizard\ext_rest::$$_enable_in_wizard
Default valuetrueDetails
Type
bool
Inherited_from
\source::$$_enable_in_wizard  
Inherited_from
\ext_rest::$$_enable_in_wizard  
Propertyprotected  $_field_defs= ''
Details
Type
n/a
Inherited_from
\source::$$_field_defs  
Inherited_from
\ext_rest::$$_field_defs  
Propertyprotectedbool  $_has_testing_enabled= 'false'
inherited

has_testing_enabled Boolean value marking whether or not the connector should display the test button in administration viewInherited from: \source::$$_has_testing_enabled\ext_rest::$$_has_testing_enabled
Default valuefalseDetails
Type
bool
Inherited_from
\source::$$_has_testing_enabled  
Inherited_from
\ext_rest::$$_has_testing_enabled  
Propertyprotected  $_mapping= ''
inheritedInherited from: \source::$$_mapping\ext_rest::$$_mapping
Details
Type
n/a
Inherited_from
\source::$$_mapping  
Inherited_from
\ext_rest::$$_mapping  
Propertyprotected  $_required_config_fields= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\source::$$_required_config_fields  
Inherited_from
\ext_rest::$$_required_config_fields  
Propertyprotected  $_required_config_fields_for_button= 'array()'
Default valuearray()Details
Type
n/a
Inherited_from
\source::$$_required_config_fields_for_button  
Inherited_from
\ext_rest::$$_required_config_fields_for_button  
Propertyprotected  $_url= ''
inheritedInherited from: \ext_rest::$$_url
Details
Type
n/a
Inherited_from
\ext_rest::$$_url  
Propertyprotected  $config_decrypted= 'false'
Default valuefalseDetails
Type
n/a
Inherited_from
\source::$$config_decrypted  
Inherited_from
\ext_rest::$$config_decrypted  
Propertypublic  $wrapperName= ''
inherited

The name of an wrapper to use if the class wants to provide an override

Inherited from: \source::$$wrapperName\ext_rest::$$wrapperName
Details
Type
n/a
Inherited_from
\source::$$wrapperName  
Inherited_from
\ext_rest::$$wrapperName  

Methods

methodpublic__construct( ) : void

methodpublic__destruct( ) : void
inherited

Default destructor

Inherited from: \source::__destruct()\ext_rest::__destruct()
methodprotectedfetchUrl(  $url ) : void
inherited

Inherited from: \ext_rest::fetchUrl()
Parameters
Name Type Description
$url
methodpublicfilterAllowedModules( array $moduleList ) : array
inherited

Filter which modules are allowed to connect

Inherited from: \source::filterAllowedModules()\ext_rest::filterAllowedModules()
Parameters
Name Type Description
$moduleList array
Returns
Type Description
array Allowed modules
methodpublicgetConfig( ) : void
inherited

Inherited from: \source::getConfig()\ext_rest::getConfig()
methodpublicgetEAPM( ) : void
inherited

Inherited from: \source::getEAPM()\ext_rest::getEAPM()
methodpublicgetFieldDefs( ) : void
methodpublicgetFieldsWithParams( string $param_name, string $param_value ) : array
inherited

Given a parameter in a vardef field, return the list of fields that match the param and value

Inherited from: \source::getFieldsWithParams()\ext_rest::getFieldsWithParams()
Parameters
Name Type Description
$param_name string
$param_value string
Returns
Type Description
array
methodpublicgetItem( \$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.

Parameters
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

Returns
Type Description
Array of key/value pair(s) of connector record; empty Array if no results are found
methodpublicgetList( \$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.

Parameters
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

Returns
Type Description
Array of key/value pair(s) of connector record; empty Array if no results are found
methodpublicgetMapping( ) : void
methodpublicgetOriginalMapping( ) : void
methodpublicgetProperties( ) : void
methodpublicgetProperty(  $name ) : void
Parameters
Name Type Description
$name
methodpublicgetRequiredConfigFields( ) : \$fields
inherited

getRequiredConfigFields This method returns an Array of the configuration keys that are required for the Connector.

Inherited from: \source::getRequiredConfigFields()\ext_rest::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.

Returns
Type Description
\$fields Array of Connector config fields that are required
methodpublicgetRequiredConfigFieldsForButton( ) : \$fields
inherited

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_rest::getRequiredConfigFieldsForButton()
Returns
Type Description
\$fields Array of Connector config fields that are required to be set for the "Get Data" button to appear
methodpublicgetUrl( ) : void
inherited

Inherited from: \ext_rest::getUrl()
methodpublichasTestingEnabled( ) : \enabled
inherited

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_rest::hasTestingEnabled()
Returns
Type Description
\enabled boolean value indicating whether or not testing is enabled
methodpublicinit( ) : void
inherited

Inherited from: \source::init()\ext_rest::init()
methodpublicinitConfig( ) : void
inherited

Initialize config - decrypt encrypted fields

Inherited from: \source::initConfig()\ext_rest::initConfig()
methodpublicisEnabledInAdminDisplay( ) : boolean
inherited

isEnabledInAdminDisplay This method indicates whether or not the connector should be shown in the Enable Connectors view.

Inherited from: \source::isEnabledInAdminDisplay()\ext_rest::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.

Returns
Type Description
boolean value indicating whether or not the connector is enabled for admin views
methodpublicisEnabledInAdminMapping( ) : boolean
inherited

isEnabledInAdminMapping This method indicates whether or not the connector should be shown in the Map Connector Fields view.

Inherited from: \source::isEnabledInAdminMapping()\ext_rest::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.

Returns
Type Description
boolean value indicating whether or not the connector is enabled for admin views
methodpublicisEnabledInAdminProperties( ) : boolean
inherited

isEnabledInAdminProperties This method indicates whether or not the connector should be shown in the Set Connector Properties view.

Inherited from: \source::isEnabledInAdminProperties()\ext_rest::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.

Returns
Type Description
boolean value indicating whether or not the connector is enabled for admin views
methodpublicisEnabledInAdminSearch( ) : boolean
inherited

isEnabledInAdminSearch This method indicates whether or not the connector should be shown in the Manage Connectors Search view.

Inherited from: \source::isEnabledInAdminSearch()\ext_rest::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.

Returns
Type Description
boolean value indicating whether or not the connector is enabled for admin views
methodpublicisEnabledInHover( ) : \$enabled
inherited

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_rest::isEnabledInHover()
Returns
Type Description
\$enabled boolean variable indicating whether or not the connector is enabled for the hover links
methodpublicisEnabledInWizard( ) : \$enabled
inherited

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_rest::isEnabledInWizard()
Returns
Type Description
\$enabled boolean variable indicating whether or not the connector is enabled for the wizard
methodpublicisRequiredConfigFieldsForButtonSet( ) : \$set
inherited

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_rest::isRequiredConfigFieldsForButtonSet()
Returns
Type Description
\$set boolean value indicating whether or not the required config fields are set
methodpublicisRequiredConfigFieldsSet( ) : \$set
inherited

isRequiredConfigFieldsSet This method checks the configuration parameters against the required config fields to see if they are set

Inherited from: \source::isRequiredConfigFieldsSet()\ext_rest::isRequiredConfigFieldsSet()
Returns
Type Description
\$set boolean value indicating whether or not the required config fields are set
methodpublicloadConfig( ) : void
inherited

Load config.php for this source

Inherited from: \source::loadConfig()\ext_rest::loadConfig()
methodpublicloadMapping( ) : void
methodpublicloadVardefs( ) : void
inherited

Load source's vardef file

Inherited from: \source::loadVardefs()\ext_rest::loadVardefs()
methodprotectedlog( string $log_data ) : void
inherited

Allow data sources to log information

Inherited from: \source::log()\ext_rest::log()
Parameters
Name Type Description
$log_data string
methodpublicpropertyExists( string $name ) : bool
inherited

Check if certain property contains non-empty value

Inherited from: \source::propertyExists()\ext_rest::propertyExists()
Parameters
Name Type Description
$name string
Returns
Type Description
bool
methodpublicsaveConfig( ) : void
inherited

Save source's config to custom directory

Inherited from: \source::saveConfig()\ext_rest::saveConfig()
methodpublicsaveMappingHook(  $mapping ) : void
Parameters
Name Type Description
$mapping
methodpublicsetConfig(  $config ) : void
inherited

Inherited from: \source::setConfig()\ext_rest::setConfig()
Parameters
Name Type Description
$config
methodpublicsetEAPM(  $eapm ) : void
inherited

Inherited from: \source::setEAPM()\ext_rest::setEAPM()
Parameters
Name Type Description
$eapm
methodpublicsetMapping(  $mapping ) : void
Parameters
Name Type Description
$mapping
methodpublicsetProperties(  $properties = array() ) : void
Parameters
Name Type Description
$properties
methodpublicsetUrl(  $url ) : void
inherited

Inherited from: \ext_rest::setUrl()
Parameters
Name Type Description
$url
methodpublictest( ) : \result
inherited

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()\ext_rest::test()
Returns
Type Description
\result boolean result of the test function
Documentation was generated by DocBlox 0.18.1.