ProductRelationshipsErpSyncCommand
class ProductRelationshipsErpSyncCommand extends ErpContainerCommand
Class ProductRelationshipsErpSyncCommand - sync product relationships
Constants
| PRODUCT_RELATIONSHIPS_PAGINATION_FILE_PATH |
|
Properties
| protected InputInterface | $input | from ErpContainerCommand | |
| protected OutputInterface | $output | from ErpContainerCommand |
Methods
mixed
dispatchEventWithResult(string $eventName, mixed $parameter = null)
Dispatch event and return result
from ErpContainerCommand
array
getMappings(string $entity, mixed $params = null)
Cache all mappings in array
from ErpContainerCommand
mixed
getMappingsValueForKey(string $key, array $mappings)
Get erp data key
from ErpContainerCommand
mixed
getValueFromErpData(string $key, array $data, array $mappings)
Extract value for erp data
from ErpContainerCommand
static
setPage(int $page, int $maxPages, string $path)
Write max page parameter to file
from ErpContainerCommand
static
writteDuplicates(string $path, string $duplicates)
Write duplicates to file
from ErpContainerCommand
configure()
No description
executeCommand()
No description
Details
in ErpContainerCommand at line 44
protected
execute(InputInterface $input, OutputInterface $output)
in ErpContainerCommand at line 68
protected mixed
dispatchEventWithResult(string $eventName, mixed $parameter = null)
Dispatch event and return result
in ErpContainerCommand at line 84
protected object
get(string $service)
Get container service
in ErpContainerCommand at line 97
protected array
getMappings(string $entity, mixed $params = null)
Cache all mappings in array
in ErpContainerCommand at line 178
protected mixed
getMappingsValueForKey(string $key, array $mappings)
Get erp data key
in ErpContainerCommand at line 203
protected mixed
getValueFromErpData(string $key, array $data, array $mappings)
Extract value for erp data
in ErpContainerCommand at line 218
protected
writeError(string $message)
Write error message to console
in ErpContainerCommand at line 229
protected
writeSuccess(string $message)
Write success message to console
in ErpContainerCommand at line 239
protected
writeLog(string $message)
Write success and error messages to log file
in ErpContainerCommand at line 254
static protected
setPage(int $page, int $maxPages, string $path)
Write max page parameter to file
in ErpContainerCommand at line 266
static protected
writteDuplicates(string $path, string $duplicates)
Write duplicates to file