class FaqQuestionManager extends TranslatableManager implements JQGridInterface, BasicEntityManagerInterface

Class FaqQuestionManager is injected as alligator.faq_question_manager service. FaqQuestionManager handles the logic for managed entity.

Traits

Trait JQGridManagerTrait

Properties

protected FaqQuestionRepository $repository

Methods

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

setRepository(mixed $repository)

No description

mixed
getLanguagesForIds(array $ids)

Find all distinct locale from faqs that match provided ids

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

__construct(FaqQuestionRepository $repository, FaqQuestionEventContainer $container)

FaqQuestionManager constructor.

array
getAllFaqCategories()

Find all faq categories

mixed
getAllTreeCategoriesForCategoryAddTree(string|null $locale = null)

Retrieves the nested array or the decorated output.

Faq
saveFaqQuestion(Faq $question)

Persist new faq question and update number of items for all faq category

Faq
editFaqQuestion(Faq $question)

Update existing faq question and update number of items for all faq category

array
getAllCatsForSidebarTree()

Retrieves the nested array or the decorated output.

array|mixed
getCategoriesTreeSidebar()

No description

Faq
setNewCategory(Faq $faq, Faq $faqTemp)

Change faq category for provided entity

Faq
findOneByIdForEdit(int $id)

Find single faq for provided id

array
findQuestionCustomByCategory(int $id, string|null $locale = null)

Find all faqs question for provided category and/or locale

array
findQuestionsForSearch(int $searchParam, FaqCategory $category)

Find all faqs question from specified category for provided title or answer

array
findAllForQuestionsByCategory()

Find all faqs question grouped by faq category(for default locale)

array
findAllCustomForFrontendByCategories(string $param)

Find all faqs question for provided title

array
findQuestionsForSearchAll(string $param)

Find all faqs question for provided title or answer

Faq
deleteFaqQuestions(array $faqQuestionsIdArray)

Remove all faqs that from provided array

mixed
dispatchFaqTreeGenerateSignal(string $locale)

Dispatch signal to set faq category tree to cache on terminate

array
findAllCustomForFrontend()

Finds all faq categories

array
findAllCategoriesForSidebar()

Find all faqs question grouped by faq category

Details

in TranslatableManager at line 30
setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

Parameters

ContainerInterface|null $container

Exceptions

InvalidArgumentException if repository is not an instance of TranslatableRepository

in TranslatableManager at line 63
setRepository(mixed $repository)

Parameters

mixed $repository

at line 305
mixed getLanguagesForIds(array $ids)

Find all distinct locale from faqs that match provided ids

Parameters

array $ids

Return Value

mixed

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

at line 45
__construct(FaqQuestionRepository $repository, FaqQuestionEventContainer $container)

FaqQuestionManager constructor.

Parameters

FaqQuestionRepository $repository
FaqQuestionEventContainer $container

at line 56
array getAllFaqCategories()

Find all faq categories

Return Value

array

at line 68
mixed getAllTreeCategoriesForCategoryAddTree(string|null $locale = null)

Retrieves the nested array or the decorated output.

Parameters

string|null $locale

Return Value

mixed

at line 82
Faq saveFaqQuestion(Faq $question)

Persist new faq question and update number of items for all faq category

Parameters

Faq $question

Return Value

Faq

Exceptions

ORMException

at line 104
Faq editFaqQuestion(Faq $question)

Update existing faq question and update number of items for all faq category

Parameters

Faq $question

Return Value

Faq

Exceptions

ORMException

at line 129
array getAllCatsForSidebarTree()

Retrieves the nested array or the decorated output.

Return Value

array

at line 137
array|mixed getCategoriesTreeSidebar()

Return Value

array|mixed

at line 150
Faq setNewCategory(Faq $faq, Faq $faqTemp)

Change faq category for provided entity

Parameters

Faq $faq
Faq $faqTemp

Return Value

Faq

at line 174
Faq findOneByIdForEdit(int $id)

Find single faq for provided id

Parameters

int $id

Return Value

Faq

Exceptions

NoResultException
NonUniqueResultException

at line 187
array findQuestionCustomByCategory(int $id, string|null $locale = null)

Find all faqs question for provided category and/or locale

Parameters

int $id
string|null $locale

Return Value

array

at line 200
array findQuestionsForSearch(int $searchParam, FaqCategory $category)

Find all faqs question from specified category for provided title or answer

Parameters

int $searchParam
FaqCategory $category

Return Value

array

at line 210
array findAllForQuestionsByCategory()

Find all faqs question grouped by faq category(for default locale)

Return Value

array

at line 224
array findAllCustomForFrontendByCategories(string $param)

Find all faqs question for provided title

Parameters

string $param

Return Value

array

at line 236
array findQuestionsForSearchAll(string $param)

Find all faqs question for provided title or answer

Parameters

string $param

Return Value

array

at line 250
Faq deleteFaqQuestions(array $faqQuestionsIdArray)

Remove all faqs that from provided array

Parameters

array $faqQuestionsIdArray

Return Value

Faq

Exceptions

ORMException

at line 273
mixed dispatchFaqTreeGenerateSignal(string $locale)

Dispatch signal to set faq category tree to cache on terminate

Parameters

string $locale

Return Value

mixed

at line 283
array findAllCustomForFrontend()

Finds all faq categories

Return Value

array

at line 293
array findAllCategoriesForSidebar()

Find all faqs question grouped by faq category

Return Value

array