CRM_Activity_Import_Parser_Activity
extends CRM_Import_Parser
in package
Class to parse activity csv files.
Table of Contents
Properties
- $_newActivity : mixed
Methods
- getMappedRow() : array<string|int, mixed>
- Get the row from the csv mapped to our parameters.
- getUserJobInfo() : array<string|int, mixed>
- Get information about the provided job.
- import() : mixed
- Handle the values in import mode.
- init() : mixed
- The initializer code, called before the processing.
- getRequiredFields() : array<string|int, mixed>
- setFieldMetadata() : void
- Ensure metadata is loaded.
Properties
$_newActivity
protected
mixed
$_newActivity
Methods
getMappedRow()
Get the row from the csv mapped to our parameters.
public
getMappedRow(array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getUserJobInfo()
Get information about the provided job.
public
static getUserJobInfo() : array<string|int, mixed>
- name
- id (generally the same as name)
- label
e.g. ['activity_import' => ['id' => 'activity_import', 'label' => ts('Activity Import'), 'name' => 'activity_import']]
Return values
array<string|int, mixed>import()
Handle the values in import mode.
public
import(array<string|int, mixed> $values) : mixed
Parameters
- $values : array<string|int, mixed>
-
The array of values belonging to this line.
init()
The initializer code, called before the processing.
public
init() : mixed
getRequiredFields()
protected
getRequiredFields() : array<string|int, mixed>
Return values
array<string|int, mixed>setFieldMetadata()
Ensure metadata is loaded.
protected
setFieldMetadata() : void