Logidav Docs

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

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

importCategories()

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
string

convertToTree()

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

        
On this page

Search results