Remove cat parent uid from arguments

This commit is contained in:
Dirk 2019-11-07 10:25:09 +01:00
parent bd4409fd76
commit b632a32fe7
4 changed files with 12 additions and 17 deletions

View file

@ -23,7 +23,7 @@ class DestinationDataImportCommand extends Command {
'storage-pid', 'storage-pid',
InputArgument::OPTIONAL, InputArgument::OPTIONAL,
'What is the storage pid?', 'What is the storage pid?',
'6' '284'
); );
$this->addArgument( $this->addArgument(
'region-uid', 'region-uid',
@ -31,12 +31,6 @@ class DestinationDataImportCommand extends Command {
'What is the region uid?', 'What is the region uid?',
'1' '1'
); );
$this->addArgument(
'category-parent-uid',
InputArgument::OPTIONAL,
'What is the default category parent uid?',
'52'
);
$this->addArgument('rest-experience', $this->addArgument('rest-experience',
InputArgument::OPTIONAL, InputArgument::OPTIONAL,
'What is the rest experience?', 'What is the rest experience?',
@ -59,7 +53,6 @@ class DestinationDataImportCommand extends Command {
$input->getArgument('rest-experience'), $input->getArgument('rest-experience'),
$input->getArgument('storage-pid'), $input->getArgument('storage-pid'),
$input->getArgument('region-uid'), $input->getArgument('region-uid'),
$input->getArgument('category-parent-uid'),
$input->getArgument('files-folder') $input->getArgument('files-folder')
); );
} }

View file

@ -185,27 +185,26 @@ class DestinationDataImportService {
); );
// Set properties // Set properties
$this->restUrl = $this->settings['destinationData']['restUrl']; $this->restUrl = $this->settings['destinationData']['restUrl'];
$this->restLicenseKey = $this->settings['destinationData']['license']; $this->restLicenseKey = $this->settings['destinationData']['license'];
$this->restType = $this->settings['destinationData']['restType']; $this->restType = $this->settings['destinationData']['restType'];
$this->restLimit = $this->settings['destinationData']['restLimit']; $this->restLimit = $this->settings['destinationData']['restLimit'];
$this->restTemplate = $this->settings['destinationData']['restTemplate']; $this->restTemplate = $this->settings['destinationData']['restTemplate'];
$this->sysCategoriesPid = $this->settings['destinationData']['categoriesPid']; $this->sysCategoriesPid = $this->settings['destinationData']['categoriesPid'];
$this->categoryParentUid = $this->settings['destinationData']['categoryParentUid'];
} }
/** /**
* @param $restExperience * @param $restExperience
* @param $storagePid * @param $storagePid
* @param $regionUid * @param $regionUid
* @param $categoryParentUid
* @param $filesFolder * @param $filesFolder
*/ */
public function import($restExperience, $storagePid, $regionUid, $categoryParentUid, $filesFolder) { public function import($restExperience, $storagePid, $regionUid, $filesFolder) {
$this->restExperience = $restExperience; $this->restExperience = $restExperience;
$this->storagePid = $storagePid; $this->storagePid = $storagePid;
$this->regionUid = $regionUid; $this->regionUid = $regionUid;
$this->categoryParentUid = $categoryParentUid;
$this->filesFolder = $filesFolder; $this->filesFolder = $filesFolder;
// Get configuration // Get configuration

View file

@ -26,6 +26,8 @@ plugin.tx_events {
restTemplate = ET2014A.json restTemplate = ET2014A.json
# cat=plugin.tx_events//a; type=string; Label=Category Storage # cat=plugin.tx_events//a; type=string; Label=Category Storage
categoriesPid = 54 categoriesPid = 54
# cat=plugin.tx_events//a; type=string; Label=Category Parent ID
categoryParentUid = 6
} }
} }
} }

View file

@ -52,6 +52,7 @@ plugin.tx_events {
restLimit = {$plugin.tx_events.settings.destinationData.restLimit} restLimit = {$plugin.tx_events.settings.destinationData.restLimit}
restTemplate = {$plugin.tx_events.settings.destinationData.restTemplate} restTemplate = {$plugin.tx_events.settings.destinationData.restTemplate}
categoriesPid = {$plugin.tx_events.settings.destinationData.categoriesPid} categoriesPid = {$plugin.tx_events.settings.destinationData.categoriesPid}
categoryParentUid = {$plugin.tx_events.settings.destinationData.categoryParentUid}
} }
} }
} }