modules/Import/sources/ExternalSourceEAPMAdapter.php
\ExternalSourceEAPMAdapter
- Parent(s)
- \ImportDataSource < ?\Iterator
Properties
$_createdCount= '0'
0
Details- Type
- n/a
- Inherited_from
- \ImportDataSource::$$_createdCount
$_currentRow= 'FALSE'
Array of the values in the current array we are in
Inherited from: \ImportDataSource::$$_currentRowFALSE
Details- Type
- n/a
- Inherited_from
- \ImportDataSource::$$_currentRow
$_dataSet= 'array()'
Stores a subset or entire portion of the data set requested.
Inherited from: \ImportDataSource::$$_dataSetarray()
Details- Type
- n/a
- Inherited_from
- \ImportDataSource::$$_dataSet
$_localeSettings= 'array('importlocale_charset' => 'UTF-8',
'importlocale_dateformat' => 'Y-m-d',
'importlocale_timeformat' => 'H:i',
'importlocale_timezone' => '',
'importlocale_currency' => '',
'importlocale_default_currency_significant_digits' => '',
'importlocale_num_grp_sep' => '',
'importlocale_dec_sep' => '',
'importlocale_default_locale_name_format' => '')'
Holds any locale settings needed for import. These can be provided by the user or explicitly set by the user.
array('importlocale_charset' => 'UTF-8',
'importlocale_dateformat' => 'Y-m-d',
'importlocale_timeformat' => 'H:i',
'importlocale_timezone' => '',
'importlocale_currency' => '',
'importlocale_default_currency_significant_digits' => '',
'importlocale_num_grp_sep' => '',
'importlocale_dec_sep' => '',
'importlocale_default_locale_name_format' => '')
Details- Type
- n/a
$_offset= '0'
The current offset the data set should start at
Inherited from: \ImportDataSource::$$_offset0
Details- Type
- n/a
- Inherited_from
- \ImportDataSource::$$_offset
\The
$_recordSet= 'array()'
array()
Details- Type
- \The
$_rowCountedForErrors= 'false'
True if the current row has already had an error it in, so we don't increase the $_errorCount
Inherited from: \ImportDataSource::$$_rowCountedForErrorsfalse
Details- Type
- n/a
- Inherited_from
- \ImportDataSource::$$_rowCountedForErrors
$_sourcename= ''
Sourcename used as an identifier for this import
Inherited from: \ImportDataSource::$$_sourcename- Type
- n/a
- Inherited_from
- \ImportDataSource::$$_sourcename
int
$_totalRecordCount= '-1'
-1
Details- Type
- int
$_updatedCount= '0'
0
Details- Type
- n/a
- Inherited_from
- \ImportDataSource::$$_updatedCount
Methods
__get(
$var
)
:
void
Name | Type | Description |
---|---|---|
$var |
formatErrorMessage(
$error, $fieldName, $fieldValue
)
:
void
Name | Type | Description |
---|---|---|
$error | ||
$fieldName | ||
$fieldValue |
getTotalRecordCount(
)
:
int
Return the total count of records that will be imported.
Type | Description |
---|---|
int |
loadDataSet(
$maxResults
=
0
)
:
array
Return a feed of google contacts using the EAPM and Connectors farmework.
Name | Type | Description |
---|---|---|
$maxResults |
Type | Description |
---|---|
array |
Exception | Description |
---|---|
\Exception |
markRowAsDuplicate(
$field_names
=
array()
)
:
void
Writes the row out to the ImportCacheFiles::getDuplicateFileName() file
Inherited from: \ImportDataSource::markRowAsDuplicate()Name | Type | Description |
---|---|---|
$field_names |
markRowAsImported(
\$createdRecord $createdRecord
=
true
)
:
void
Marks whether this row created a new record or not
Inherited from: \ImportDataSource::markRowAsImported()Name | Type | Description |
---|---|---|
$createdRecord | \$createdRecord | bool true if record is created, false if it is just updated |
setSourceName(
$sourceName
=
''
)
:
void
Set the source name.
Name | Type | Description |
---|---|---|
$sourceName |
writeError(
\$error $error, \$fieldName $fieldName, \$fieldValue $fieldValue
)
:
void
Writes the row out to the ImportCacheFiles::getErrorFileName() file
Inherited from: \ImportDataSource::writeError()Name | Type | Description |
---|---|---|
$error | \$error | string |
$fieldName | \$fieldName | string |
$fieldValue | \$fieldValue | mixed |
writeErrorRecord(
$errorMessage
=
''
)
:
void
Writes the row out to the ImportCacheFiles::getErrorRecordsFileName() file
Inherited from: \ImportDataSource::writeErrorRecord()Name | Type | Description |
---|---|---|
$errorMessage |
writeRowToLastImport(
string $import_module, string $module, string $id
)
:
void
Add this row to the UsersLastImport table
Inherited from: \ImportDataSource::writeRowToLastImport()Name | Type | Description |
---|---|---|
$import_module | string | name of the module we are doing the import into |
$module | string | name of the bean we are creating for this import |
$id | string | id of the recorded created in the $module |
writeStatus(
)
:
void
Writes the totals and filename out to the ImportCacheFiles::getStatusFileName() file
Inherited from: \ImportDataSource::writeStatus()