mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-22 10:36:11 +01:00
Remove cat parent uid from arguments
This commit is contained in:
parent
bd4409fd76
commit
b632a32fe7
4 changed files with 12 additions and 17 deletions
|
@ -23,7 +23,7 @@ class DestinationDataImportCommand extends Command {
|
|||
'storage-pid',
|
||||
InputArgument::OPTIONAL,
|
||||
'What is the storage pid?',
|
||||
'6'
|
||||
'284'
|
||||
);
|
||||
$this->addArgument(
|
||||
'region-uid',
|
||||
|
@ -31,12 +31,6 @@ class DestinationDataImportCommand extends Command {
|
|||
'What is the region uid?',
|
||||
'1'
|
||||
);
|
||||
$this->addArgument(
|
||||
'category-parent-uid',
|
||||
InputArgument::OPTIONAL,
|
||||
'What is the default category parent uid?',
|
||||
'52'
|
||||
);
|
||||
$this->addArgument('rest-experience',
|
||||
InputArgument::OPTIONAL,
|
||||
'What is the rest experience?',
|
||||
|
@ -59,7 +53,6 @@ class DestinationDataImportCommand extends Command {
|
|||
$input->getArgument('rest-experience'),
|
||||
$input->getArgument('storage-pid'),
|
||||
$input->getArgument('region-uid'),
|
||||
$input->getArgument('category-parent-uid'),
|
||||
$input->getArgument('files-folder')
|
||||
);
|
||||
}
|
||||
|
|
|
@ -185,27 +185,26 @@ class DestinationDataImportService {
|
|||
);
|
||||
|
||||
// Set properties
|
||||
$this->restUrl = $this->settings['destinationData']['restUrl'];
|
||||
$this->restLicenseKey = $this->settings['destinationData']['license'];
|
||||
$this->restType = $this->settings['destinationData']['restType'];
|
||||
$this->restLimit = $this->settings['destinationData']['restLimit'];
|
||||
$this->restTemplate = $this->settings['destinationData']['restTemplate'];
|
||||
$this->sysCategoriesPid = $this->settings['destinationData']['categoriesPid'];
|
||||
$this->restUrl = $this->settings['destinationData']['restUrl'];
|
||||
$this->restLicenseKey = $this->settings['destinationData']['license'];
|
||||
$this->restType = $this->settings['destinationData']['restType'];
|
||||
$this->restLimit = $this->settings['destinationData']['restLimit'];
|
||||
$this->restTemplate = $this->settings['destinationData']['restTemplate'];
|
||||
$this->sysCategoriesPid = $this->settings['destinationData']['categoriesPid'];
|
||||
$this->categoryParentUid = $this->settings['destinationData']['categoryParentUid'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $restExperience
|
||||
* @param $storagePid
|
||||
* @param $regionUid
|
||||
* @param $categoryParentUid
|
||||
* @param $filesFolder
|
||||
*/
|
||||
public function import($restExperience, $storagePid, $regionUid, $categoryParentUid, $filesFolder) {
|
||||
public function import($restExperience, $storagePid, $regionUid, $filesFolder) {
|
||||
|
||||
$this->restExperience = $restExperience;
|
||||
$this->storagePid = $storagePid;
|
||||
$this->regionUid = $regionUid;
|
||||
$this->categoryParentUid = $categoryParentUid;
|
||||
$this->filesFolder = $filesFolder;
|
||||
|
||||
// Get configuration
|
||||
|
|
|
@ -26,6 +26,8 @@ plugin.tx_events {
|
|||
restTemplate = ET2014A.json
|
||||
# cat=plugin.tx_events//a; type=string; Label=Category Storage
|
||||
categoriesPid = 54
|
||||
# cat=plugin.tx_events//a; type=string; Label=Category Parent ID
|
||||
categoryParentUid = 6
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,7 @@ plugin.tx_events {
|
|||
restLimit = {$plugin.tx_events.settings.destinationData.restLimit}
|
||||
restTemplate = {$plugin.tx_events.settings.destinationData.restTemplate}
|
||||
categoriesPid = {$plugin.tx_events.settings.destinationData.categoriesPid}
|
||||
categoryParentUid = {$plugin.tx_events.settings.destinationData.categoryParentUid}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue