StaticPageManager
class StaticPageManager extends TranslatableManager implements JQGridInterface
Class StaticPageManager is injected as alligator.static_page_manager service. StaticPageManager handles the logic for entity.
Traits
Properties
| protected StaticPageRepository | $repository | ||
| protected ContainerInterface | $container | ||
| protected StaticPageCategoryRepository | $staticPageCategoryRepository | ||
| protected StaticPageContainer | $staticPageContainer |
Methods
Sets the repository request default locale
No description
No description
No description
Get entities from database by ids
No description
Get multiple static pages for specified category
Get single Static Page by id
Get single Static Page for slug
Find Static Page Category by slug
Get shop cache object
Get static page tree
Get single static page for specified slug
Get all static pages
Set new category for Static Page
Delete multiple Static Pages
Get multiple static pages
Get count for visible static pages
Get number of static pages for specified category
Get latest static pages
Set rendered content for last n pages to cache
Dispatch event to cache category tree for specified locale
Dispatch signal for updating mega menu and cache it
Dispatch signal for updating footer info and cache it
Dispatch event to re cache html content
Get Decorated tree
Get data for megamenu
Dispatch event for menu builder update
No description
Details
in TranslatableManager at line 30
setRepositoryLocale(ContainerInterface|null $container)
Sets the repository request default locale
in TranslatableManager at line 63
setRepository(mixed $repository)
in TranslatableManager at line 73
mixed
getLanguagesForIds(array $ids)
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)
in BlockElementManagerTrait at line 28
array
getEntitiesForBlockElementsExtension(array $ids)
Get entities from database by ids
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 54
__construct(StaticPageRepository $repository, ContainerInterface $container, StaticPageCategoryRepository $staticPageCategoryRepository, StaticPageContainer $staticPageContainer)
at line 72
object
saveStaticPage(StaticPage $staticPage)
Save new Static Page
at line 126
array
findAllCustomForFrontendByCategory(int $page, int $offset, int $categoryId)
Get multiple static pages for specified category
at line 137
StaticPage
findOneById(int $id)
Get single Static Page by id
at line 151
StaticPage
findIdBySlug(string $slug)
Get single Static Page for slug
at line 166
StaticPageCategory
findCategoryBySlug(string $slug, string|null $locale = null)
Find Static Page Category by slug
at line 175
object
getCache()
Get shop cache object
at line 186
array
findThreeByIdCustomForSingleBlog(int $id)
Get static page tree
at line 199
object
editStaticPage(StaticPage $staticPage)
Merge Static Page
at line 261
array
findOneBySlugCustomForSingleBlog(mixed $slug, null $locale = null)
Get single static page for specified slug
at line 270
array
findAll()
Get all static pages
at line 282
StaticPage
setNewStaticPageCategory(StaticPage $staticPage, StaticPage $staticPageTemp)
Set new category for Static Page
at line 307
bool
deleteStaticPages(array $ids)
Delete multiple Static Pages
at line 340
array
findAllCustomForFrontend(int $page, int $offset, null $locale = null)
Get multiple static pages
at line 351
array
countPostsPagination(null $locale = null)
Get count for visible static pages
at line 362
array
countPostsPaginationByCategory(int $id)
Get number of static pages for specified category
at line 374
mixed
getLastNPosts(mixed $theme, string $locale)
Get latest static pages
at line 392
string
setLastNBlogPostForFrontend(string $theme, string $locale)
Set rendered content for last n pages to cache
at line 418
dispatchTeeGenerateSignal(string $locale)
Dispatch event to cache category tree for specified locale
at line 429
dispatchMegamenuSignal(string $theme, string $locale)
Dispatch signal for updating mega menu and cache it
at line 437
dispatchFooterSignal()
Dispatch signal for updating footer info and cache it
at line 448
dispatchSidebarBlogsEvent(string $theme, string $locale)
Dispatch event to re cache html content
at line 459
array|string
getAllTreeCategoriesForCategoryAddTree(string $locale = null)
Get Decorated tree
at line 470
array
getTreeForMegamenuFromDB(string $locale)
Get data for megamenu
at line 481
dispatchMenuUpdateRemoveSignal(int $id, string $slug, null $name = null)
Dispatch event for menu builder update
at line 492
getLanguageRelatedEntity($slug, $locale)
at line 508
dispatchStaticPageActionEvent(StaticPage $staticPage)
Dispatch blog post action (save, edit) event