change variables for class SetupClass.php instantiation

This commit is contained in:
ThomasBarris
2018-09-18 21:28:05 +02:00
parent a0dbeabed1
commit 0273e128f4
3 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ class SetupFunctions
protected $oDB = null; // set in setupDB (earliest) or later in loadData, importData, drop, createSqlFunctions, importTigerData protected $oDB = null; // set in setupDB (earliest) or later in loadData, importData, drop, createSqlFunctions, importTigerData
// pgsqlRunPartitionScript, calculatePostcodes, ..if no already set // pgsqlRunPartitionScript, calculatePostcodes, ..if no already set
public function __construct($aCMDResult, $callingFunction = 'setup') public function __construct($callingFunction, array $aCMDResult = array())
{ {
// by default, use all but one processor, but never more than 15. // by default, use all but one processor, but never more than 15.
$this->iInstances = isset($aCMDResult['threads']) $this->iInstances = isset($aCMDResult['threads'])

View File

@@ -71,7 +71,7 @@ if ($aCMDResult['osmosis-init']) {
// ****************************************************** // ******************************************************
// instantiate Setup class // instantiate Setup class
$cSetup = new SetupFunctions($aCMDResult); $cSetup = new SetupFunctions('setup', $aCMDResult);
// ******************************************************* // *******************************************************
// go through complete process if 'all' is selected or start selected functions // go through complete process if 'all' is selected or start selected functions

View File

@@ -106,7 +106,7 @@ if ($aResult['init-updates']) {
if (!$aResult['no-update-functions']) { if (!$aResult['no-update-functions']) {
// instantiate setupClass to use the function therein // instantiate setupClass to use the function therein
$cSetup = new SetupFunctions($aResult, 'update'); $cSetup = new SetupFunctions('update');
$cSetup->createFunctions(); $cSetup->createFunctions();
} }