civicrm_cli_csv_exporter
extends civicrm_cli
in package
class used by csv/export.php to export records from the database in a csv file format.
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
- $separator : mixed
Methods
- __construct() : mixed
- _accessing_from_cli() : bool
- Ensure function is being run from the cli.
- callApi() : bool
- initialize() : bool
- run() : mixed
- Run the script.
- _bootstrap() : bool
- _getUsage() : string
- _log() : mixed
- _parseOptions() : bool
- _sanitize() : string
- _validateOptions() : bool
Properties
$_action
public
mixed
$_action
= \NULL
$_additional_arguments
public
mixed
$_additional_arguments
= array()
$_config
public
mixed
$_config
$_entity
public
mixed
$_entity
= \NULL
$_errors
public
mixed
$_errors
= array()
$_joblog
public
mixed
$_joblog
= \FALSE
$_output
public
mixed
$_output
= \FALSE
$_params
array that is passed to civicrm_api
public
array<string|int, mixed>
$_params
= array('version' => 3)
$_password
public
mixed
$_password
= \NULL
$_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'
$_user
public
mixed
$_user
= \NULL
$separator
public
mixed
$separator
= ','
Methods
__construct()
public
__construct() : mixed
_accessing_from_cli()
Ensure function is being run from the cli.
public
_accessing_from_cli() : bool
Return values
boolcallApi()
public
callApi() : bool
Return values
boolinitialize()
public
initialize() : bool
Return values
boolrun()
Run the script.
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