class FaqCategoryManager extends CategoryTranslatableManager implements JQGridInterface, BasicEntityManagerInterface

Class FaqCategoryManager is injected as alligator.faq_category_manager service. FaqCategoryManager handles the logic for managed entity.

Traits

Trait JQGridManagerTrait
Class BlockElementManagerTrait. Handles reading data for block elements

Properties

protected FaqCategoryRepository $repository
protected Router $router
protected array $leafsArray hellper array

Methods

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

setRepository(mixed $repository)

No description

mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

No description

array
getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

array
getEntityNamesForIds(array $ids)

Get id and name of entity

__construct(FaqCategoryRepository $repository, FaqCategoryEventContainer $faqCategoryEventContainer, Router $router)

No description

getRepository()

Return repository for faq category

array
getAllFaqCategories()

Find all faq categories

array
getAllFaqCategoriesForBackend()

Retrieves the nested array or the decorated output.

array
getAllCatsNew()

Find all faq categories

save(FaqCategory $entity)

Persist new faq category

array
findCategoriesForCatAdd()

Find all faq category id and name

mixed
saveFaqCategory(FaqCategory $category)

No description

array
findOneByIdForEdit(int $id)

Find single faq category for provided id

mixed
findOneById(int $id)

Finds a single faq category for provided id

edit(FaqCategory $faqCategory, bool $positionChanged, mixed $previous)

Update existing faq category and clear cache

editFaqCategory(FaqCategory $faqCategory)

Update existing faq category and clear cache

int
deleteFaqCategories(array $faqCategoriesIdArray)

No description

array
findAllQuestionsByCategories()

Finds all faq categories

array
getAllCatsForSidebarTree(string|null $locale = null, bool $frontend = false)

Retrieves the nested array or the decorated output.

array|string
getCatsAsTreeForBackend()

Retrieves the nested array or the decorated output.

array|string
getAllTreeCategoriesForCategoryAddTree(string|null $locale = null)

Retrieves the nested array or the decorated output.

array
getOnlyRoots()

No description

mixed
getCashCategoryTree(string $locale)

Retrieve cached faq category tree

mixed
setCashCategoryTree(string $data, string $locale)

Set faq category tree to cache

dispatchFaqTreeGenerateSignal(string $locale)

Dispatch signal to set faq category tree to cache on terminate

deleteResultCaches()

delete all cached results

mixed
hasRootCategory()

No description

Details

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

Parameters

ContainerInterface|null $container

Exceptions

InvalidArgumentException if repository is not an instance of TranslatableRepository

setRepository(mixed $repository)

Parameters

mixed $repository

in JQGridManagerTrait at line 26
mixed searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

array $searchParams
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 40
mixed findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 53
mixed getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

Parameters

array|null $searchParams
array|null $sortParams
array|null $additionalParams
JQGridWrapper|null $jqGridWrapper

Return Value

mixed

array getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

Parameters

array $ids

Return Value

array

array getEntityNamesForIds(array $ids)

Get id and name of entity

Parameters

array $ids

Return Value

array

at line 58
__construct(FaqCategoryRepository $repository, FaqCategoryEventContainer $faqCategoryEventContainer, Router $router)

Parameters

FaqCategoryRepository $repository
FaqCategoryEventContainer $faqCategoryEventContainer
Router $router

at line 70
FaqCategoryRepository getRepository()

Return repository for faq category

Return Value

FaqCategoryRepository

at line 80
array getAllFaqCategories()

Find all faq categories

Return Value

array

at line 90
array getAllFaqCategoriesForBackend()

Retrieves the nested array or the decorated output.

Return Value

array

at line 102
array getAllCatsNew()

Find all faq categories

Return Value

array

at line 114
stdClass save(FaqCategory $entity)

Persist new faq category

Parameters

FaqCategory $entity

Return Value

stdClass

at line 124
array findCategoriesForCatAdd()

Find all faq category id and name

Return Value

array

at line 134
mixed saveFaqCategory(FaqCategory $category)

Parameters

FaqCategory $category

Return Value

mixed

at line 164
array findOneByIdForEdit(int $id)

Find single faq category for provided id

Parameters

int $id

Return Value

array

Exceptions

NoResultException
NonUniqueResultException

at line 176
mixed findOneById(int $id)

Finds a single faq category for provided id

Parameters

int $id

Return Value

mixed

at line 190
stdClass edit(FaqCategory $faqCategory, bool $positionChanged, mixed $previous)

Update existing faq category and clear cache

Parameters

FaqCategory $faqCategory
bool $positionChanged Should update position or fields
mixed $previous

Return Value

stdClass

at line 229
FaqCategory editFaqCategory(FaqCategory $faqCategory)

Update existing faq category and clear cache

Parameters

FaqCategory $faqCategory

Return Value

FaqCategory

at line 264
int deleteFaqCategories(array $faqCategoriesIdArray)

Parameters

array $faqCategoriesIdArray

Return Value

int 0 on success. 1 on error

Exceptions

ORMException

at line 277
array findAllQuestionsByCategories()

Finds all faq categories

Return Value

array

at line 290
array getAllCatsForSidebarTree(string|null $locale = null, bool $frontend = false)

Retrieves the nested array or the decorated output.

Parameters

string|null $locale
bool $frontend

Return Value

array

at line 331
array|string getCatsAsTreeForBackend()

Retrieves the nested array or the decorated output.

Return Value

array|string

at line 345
array|string getAllTreeCategoriesForCategoryAddTree(string|null $locale = null)

Retrieves the nested array or the decorated output.

Parameters

string|null $locale

Return Value

array|string

at line 372
array getOnlyRoots()

Return Value

array

at line 384
mixed getCashCategoryTree(string $locale)

Retrieve cached faq category tree

Parameters

string $locale

Return Value

mixed

at line 397
mixed setCashCategoryTree(string $data, string $locale)

Set faq category tree to cache

Parameters

string $data
string $locale

Return Value

mixed

at line 407
dispatchFaqTreeGenerateSignal(string $locale)

Dispatch signal to set faq category tree to cache on terminate

Parameters

string $locale

at line 415
deleteResultCaches()

delete all cached results

at line 423
mixed hasRootCategory()

Return Value

mixed