Documentation

civicrm_cli_csv_importer extends civicrm_cli_csv_file
in package

class for processing records to add used by csv/import.php

Table of Contents

Properties

$_action  : mixed
$_additional_arguments  : mixed
$_config  : mixed
$_entity  : mixed
$_errors  : mixed
$_joblog  : mixed
$_output  : mixed
$_params  : array<string|int, mixed>
array that is passed to civicrm_api
$_password  : mixed
$_required_arguments  : array<string|int, mixed>
via the command line
$_semicolon  : mixed
$_site  : string
optional arguments
$_user  : mixed
$header  : mixed
$separator  : mixed

Methods

__construct()  : mixed
_accessing_from_cli()  : bool
Ensure function is being run from the cli.
callApi()  : bool
convertLine()  : array<string|int, mixed>
initialize()  : bool
processline()  : mixed
run()  : mixed
Run CLI function.
_bootstrap()  : bool
_getUsage()  : string
_log()  : mixed
_parseOptions()  : bool
_sanitize()  : string
_validateOptions()  : bool

Properties

$_additional_arguments

public mixed $_additional_arguments = array()

$_params

array that is passed to civicrm_api

public array<string|int, mixed> $_params = array('version' => 3)

$_required_arguments

via the command line

public array<string|int, mixed> $_required_arguments = array('action', 'entity')

$_semicolon

public mixed $_semicolon = \FALSE

$_site

optional arguments

public string $_site = 'localhost'

Methods

_accessing_from_cli()

Ensure function is being run from the cli.

public _accessing_from_cli() : bool
Return values
bool

callApi()

public callApi() : bool
Return values
bool

convertLine()

public convertLine(mixed $data) : array<string|int, mixed>
Parameters
$data : mixed
Return values
array<string|int, mixed>

initialize()

public initialize() : bool
Return values
bool

processline()

public processline(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>

run()

Run CLI function.

public run() : mixed

_bootstrap()

private _bootstrap() : bool
Return values
bool

_getUsage()

private _getUsage() : string
Return values
string

_log()

private _log(mixed $error) : mixed
Parameters
$error : mixed

_parseOptions()

private _parseOptions() : bool
Return values
bool

_sanitize()

private _sanitize(mixed $value) : string
Parameters
$value : mixed
Return values
string

_validateOptions()

private _validateOptions() : bool
Return values
bool

        
On this page

Search results