CategoryService
in package
Table of Contents
Properties
- $bigbuyApi : BigbuyApi
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
Methods
- __construct() : mixed
- QueueService constructor.
- getCategoryTree() : mixed
- getRepo() : CategoryRepository
- importCategories() : mixed
- Improt Categories
- printTree() : string
- save() : Category
- Save The Entity
- convertToTree() : mixed
Properties
$bigbuyApi
protected
BigbuyApi
$bigbuyApi
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
Methods
__construct()
QueueService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager, BigbuyApi $bigbuyApi) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $bigbuyApi : BigbuyApi
getCategoryTree()
public
getCategoryTree([mixed $all = true ]) : mixed
Parameters
- $all : mixed = true
getRepo()
public
getRepo() : CategoryRepository
Return values
CategoryRepositoryimportCategories()
Improt Categories
public
importCategories() : mixed
printTree()
public
static printTree(mixed $tree[, int $r = 0 ][, null $p = null ][, null $sousCategory = null ]) : string
Parameters
- $tree : mixed
- $r : int = 0
- $p : null = null
- $sousCategory : null = null
Return values
stringsave()
Save The Entity
public
save(Category $category) : Category
Parameters
- $category : Category
Return values
CategoryconvertToTree()
private
convertToTree(array<string|int, mixed> $flat, mixed $pidKey[, null $idKey = null ][, mixed $all = true ]) : mixed
Parameters
- $flat : array<string|int, mixed>
- $pidKey : mixed
- $idKey : null = null
- $all : mixed = true