CategoryService
Table of Contents
Properties
-
$categoryRepository
: CategoryRepository
-
$entityManager
: EntityManagerInterface
Methods
-
__construct()
: mixed
-
formattedTree()
: array<string|int, mixed>
-
getCategoryTree()
: mixed
-
getRepo()
: CategoryRepository
-
printTree()
: string
-
save()
: mixed
$categoryRepository
private
CategoryRepository
$categoryRepository
$entityManager
private
EntityManagerInterface
$entityManager
__construct()
public
__construct(EntityManagerInterface $entityManager, CategoryRepository $categoryRepository) : mixed
Parameters
-
$entityManager
: EntityManagerInterface
-
-
$categoryRepository
: CategoryRepository
-
public
formattedTree(mixed $tree) : array<string|int, mixed>
Parameters
-
$tree
: mixed
-
Return values
array<string|int, mixed>
getCategoryTree()
public
getCategoryTree([mixed $fromWhere = null ]) : mixed
Parameters
-
$fromWhere
: mixed
= null
-
getRepo()
public
getRepo() : CategoryRepository
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
-
save()
public
save(Category $category) : mixed
Parameters
-
$category
: Category
-