AlbumsManager
class AlbumsManager implements JQGridInterface, BasicEntityManagerInterface
Class AlbumsManager is injected as empire_albums_plugin.albums_manager service. AlbumsManager handles the logic for managed entity.
Traits
Methods
No description
No description
No description
Get Album entities for block elements
Get Album for edit
Delete Album by id
Get Albums from cache for theme and locale
Get array of albums from database for requested offset and page, if count param is provided retunr only number of items
Set Album data to cache
Dispatch Album cache event for requested theme and locale
Cache Albums html for frontend
Get single Album object for frontend by slug
Delete cached results
Reorder Album by id and set to position of newIndex
Save image to file and set it to AlbumImageAggregation
Details
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 250
array
getEntitiesForBlockElementsExtension(array $ids)
Get Album entities for block elements
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 44
__construct(AlbumsRepository $repository, AlbumsEventContainer $container)
at line 56
ArrayCollection
findOneItemForEdit(int $id)
Get Album for edit
at line 69
mixed
saveItem(Album $item)
Persist new Album object
at line 93
object
editItem(Album $item)
Edit Album object
at line 134
mixed
deleteAlbum(int $id)
Delete Album by id
at line 149
mixed
getAlbumsFromCache(string $theme, string $locale)
Get Albums from cache for theme and locale
at line 171
mixed
getAlbumsFromDB(null $page = null, null $offset = null, bool $isCount = false)
Get array of albums from database for requested offset and page, if count param is provided retunr only number of items
at line 186
mixed
setAlbumsToCache(string $data)
Set Album data to cache
at line 197
dispatchAlbumsCacheSignal(string $theme, string $locale)
Dispatch Album cache event for requested theme and locale
at line 212
string
setAlbumsForFrontend(string $theme, string $locale)
Cache Albums html for frontend
at line 239
mixed
findAlbumForFrontend(string $slug)
Get single Album object for frontend by slug
at line 258
deleteResultCache()
Delete cached results
at line 273
bool
changeOrder(int $id, int $newIndex)
Reorder Album by id and set to position of newIndex
at line 282
protected
saveImagesToFileSystemAndSetAggregations(Album $item)
Save image to file and set it to AlbumImageAggregation