phpDocumentor

CatalogCategorySync
in package
implements LoggerAwareInterface

Interfaces, Classes and Traits

LoggerAwareInterface

Table of Contents

$catalogRepository  : AfterbuyCatalogRepository
$logger  : LoggerInterface
$productWriteService  : ProductWriteServiceInterface
$readService  : CategoryReadServiceInterface
$writeService  : CategoryWriteServiceInterface
__construct()  : mixed
importCategoryImageFromUrl()  : string
setLogger()  : void
syncCategoriesToCatalogs()  : void
Creates/updates categories to match the catalogs provided by AfterbuyCatalogRepository
createCategoryFromCatalog()  : int
updateCategoryFromCatalog()  : void

Properties

Methods

setLogger()

public setLogger(LoggerInterface $logger) : void
Parameters
$logger : LoggerInterface
Return values
void

syncCategoriesToCatalogs()

Creates/updates categories to match the catalogs provided by AfterbuyCatalogRepository

public syncCategoriesToCatalogs(int $parentCategoryId, int $parentCatalogId) : void
Parameters
$parentCategoryId : int
$parentCatalogId : int
Tags
throws
ContainerExceptionInterface
throws
Exception
throws
NotFoundExceptionInterface
Return values
void

createCategoryFromCatalog()

protected createCategoryFromCatalog(AfterbuyCatalog $catalog, int $parentCategoryId) : int
Parameters
$catalog : AfterbuyCatalog
$parentCategoryId : int
Return values
int

ID of newly created category

updateCategoryFromCatalog()

protected updateCategoryFromCatalog(int $categoryId, AfterbuyCatalog $catalog, int $parentCategoryId) : void
Parameters
$categoryId : int
$catalog : AfterbuyCatalog
$parentCategoryId : int
Tags
throws
Exception
throws
ContainerExceptionInterface
throws
NotFoundExceptionInterface
Return values
void

Search results