class CRM_Import_DataSource_SQL extends CRM_Import_DataSource

Methods

array
getInfo()

Provides information about the data source.

preProcess(CRM_Core_Form $form)

Set variables up before form is built.

buildQuickForm(CRM_Core_Form $form)

This is function is called by the form object to get the DataSource's form snippet. It should add all fields necesarry to get the data uploaded to the temporary table in the DB.

postProcess(array $params, string $db, CRM_Core_Form $form)

Process the form submission.

bool
checkPermission()

Determine if the current user has access to this data source.

static array|bool
formRule($fields, $files, CRM_Core_Form $form)

No description

Details

at line 43
array getInfo()

Provides information about the data source.

Return Value

array Description of this data source, including: - title: string, translated, required - permissions: array, optional

at line 55
preProcess(CRM_Core_Form $form)

Set variables up before form is built.

Parameters

CRM_Core_Form $form

at line 68
buildQuickForm(CRM_Core_Form $form)

This is function is called by the form object to get the DataSource's form snippet. It should add all fields necesarry to get the data uploaded to the temporary table in the DB.

Parameters

CRM_Core_Form $form

at line 102
postProcess(array $params, string $db, CRM_Core_Form $form)

Process the form submission.

Parameters

array $params
string $db
CRM_Core_Form $form

in CRM_Import_DataSource at line 83
bool checkPermission()

Determine if the current user has access to this data source.

Return Value

bool

at line 81
static array|bool formRule($fields, $files, CRM_Core_Form $form)

Parameters

$fields
$files
CRM_Core_Form $form

Return Value

array|bool