Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
importAccounts.php File Reference

Go to the source code of this file.

Functions

if($outfile) printCsv ($report, $outfile)
 
 printText ($report, $outfile)
 

Variables

 $usage = new ApiUsage()
 
 $filename
 
 $outfile
 
 $dry = $usage->addEmptyParameter("dry-run", "Analyse file only - no import is proceed")
 
 $import = new \Dcp\Core\ImportAccounts()
 
 $ext = substr($outfile, strrpos($outfile, '.') + 1)
 

Function Documentation

if ($outfile) printCsv (   $report,
  $outfile 
)

Definition at line 60 of file importAccounts.php.

printText (   $report,
  $outfile 
)

Definition at line 85 of file importAccounts.php.

Variable Documentation

$dry = $usage->addEmptyParameter("dry-run", "Analyse file only - no import is proceed")

Definition at line 30 of file importAccounts.php.

$ext = substr($outfile, strrpos($outfile, '.') + 1)

Definition at line 39 of file importAccounts.php.

$filename
Initial value:
= $usage->addRequiredParameter("file", "the input XML file", function ($values, $argName, ApiUsage $apiusage)
{
if ($values === ApiUsage::GET_USAGE) {
return "";
}
if (is_file($values) && !is_readable($values)) {
$apiusage->exitError(sprintf("Error: file output \"%s\" not readable.", $values));
}
return '';
})
exitError($error= '')
const GET_USAGE
$usage
Verify arguments for wsh programs.

Definition at line 10 of file importAccounts.php.

$import = new \Dcp\Core\ImportAccounts()

Definition at line 34 of file importAccounts.php.

$outfile
Initial value:
= $usage->addOptionalParameter("report-file", "the output report file", function ($values, $argName, ApiUsage $apiusage)
{
if ($values === ApiUsage::GET_USAGE) {
return "";
}
if ($values !== "-" && is_file($values) && !is_writable($values)) {
$apiusage->exitError(sprintf("Error: file output \"%s\" not writable.", $values));
}
return '';
})
exitError($error= '')
const GET_USAGE
$usage
Verify arguments for wsh programs.

Definition at line 20 of file importAccounts.php.

$usage = new ApiUsage()

Definition at line 8 of file importAccounts.php.

← centre documentaire © anakeen