BlogCategoryManager
class BlogCategoryManager extends CategoryTranslatableManager implements JQGridInterface
Class BlogCategoryManager is injected as alligator.blog_category_manager service. BlogCategoryManager handles the logic for managed entity.
Traits
Properties
| protected BlogCategoryRepository | $repository | ||
| protected BlogCategoryContainer | $container | ||
| protected Router | $router | ||
| protected array | $leafsArray |
Methods
Sets the repository request default locale
No description
No description
No description
Find BlogCategory with related BlogPost for provided array of ids
BlogCategoryManager constructor.
Check for all preconditions, create references to all foreign entities and persist new blog category
Find blog category tree structure
Find all blog categories for specific locale
Find blog category tree structure as string representation
Set blog categories tree structure to cache
Find blog category by id
Check for all preconditions, create references to all foreign entities and merge blog category
Removes BlogCategory from provided array
Dispatch signal to re-cache blog category tree structure
Dispatch signal to re-cache blog posts
Dispatch signal to re-cache blog categories for sidebar
Return cached blog categories tree
Find and sets rendered blog posts to cache for specific locale
Find cached or cache rendered blog posts for specific locale
Find BlogCategory with related BlogPosts
Find all languages
Dispatch signal to re-cache menu items
Find all blog posts for provided blog category parent id
Find root node
Details
in CategoryTranslatableManager at line 29
setRepositoryLocale(ContainerInterface|null $container)
Sets the repository request default locale
in CategoryTranslatableManager at line 55
setRepository(mixed $repository)
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
at line 452
array|mixed
getEntitiesForBlockElementsExtension(array $ids, int $numbOfPosts)
Find BlogCategory with related BlogPost for provided array of ids
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 60
__construct(BlogCategoryRepository $repository, BlogCategoryContainer $container, Router $router)
BlogCategoryManager constructor.
at line 73
BlogCategory
saveBlogCategory(BlogCategory $category)
Check for all preconditions, create references to all foreign entities and persist new blog category
at line 96
array|string
getAllTreeCategoriesForCategoryAddTree(string|null $locale = null)
Find blog category tree structure
at line 122
object
saveBlogCategoryForAdd(BlogCategory $category)
Persist new blog category
at line 155
array|string
getAllBlogCategoriesForSidebar(string $locale)
Find all blog categories for specific locale
at line 192
string
getCatsAsTreeForBackend()
Find blog category tree structure as string representation
at line 206
mixed
setCashCategoryTree(string $data, string|null $locale = null)
Set blog categories tree structure to cache
at line 219
mixed
findOneById(int $id)
Find blog category by id
at line 232
object
edit(BlogCategory $blogCategory, bool $positionChanged, mixed $previous)
Check for all preconditions, create references to all foreign entities and merge blog category
at line 294
int
deleteBlogCategories(array $blogCategoriesIdArray)
Removes BlogCategory from provided array
at line 326
dispatchTeeGenerateSignal(string $locale)
Dispatch signal to re-cache blog category tree structure
at line 336
dispatchBlogNewsSignalEvent(string $theme, string $locale)
Dispatch signal to re-cache blog posts
at line 346
dispatchSidebarBlogsEvent(string $theme, string $locale)
Dispatch signal to re-cache blog categories for sidebar
at line 354
mixed
getCashCategoryTree()
Return cached blog categories tree
at line 368
mixed
setBlogNewsForFrontend(string $theme, string $locale)
Find and sets rendered blog posts to cache for specific locale
at line 397
mixed
getNewsFromCache(string $theme, string $locale)
Find cached or cache rendered blog posts for specific locale
at line 415
array
getNewsFromDB(int $itemsNumber)
Find BlogCategory with related BlogPosts
at line 426
array
getAllLanguages()
Find all languages
at line 437
dispatchMenuUpdateRemoveSignal(int $id, string $slug, string|null $name = null)
Dispatch signal to re-cache menu items
at line 464
mixed
getIsotopeCategories(int $id, string $locale)
Find all blog posts for provided blog category parent id
at line 475
mixed
hasRootCategory()
Find root node