BlockElementsRepository
class BlockElementsRepository extends EntityRepository implements AbstractBlockElementRepositoryInterface
Class BlockElementsRepository is injected as empire_block_elements.repository service. BlockElementsRepository is used for crud operation for entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Alias for main entity |
| BLOCK_TEMPLATE_ALIAS |
Alias for block template |
| THEME_ALIAS |
Alias for theme |
| BLOCK_RESULT_CACHE |
Cache key |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Save multiple block elements
Delete multiple Block Elements
Get multiple blocks by array of ids
Get array of all block elements
Get block element data for specified id
Get all Block elements for specified entity
Get all Block elements for specified layout title
Get all block elements for defined params
Get all blocks for theme, param can be theme name of theme id
No description
No description
Find all block elements for location and entity name
Get all block elements with theme name and template data
Details
in JQGridTrait at line 27
jQGridJoinFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)
All joins used in select.
Override in the repository class if needed. Should do nothing otherwise
in JQGridTrait at line 42
jQGridGroupByFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)
Should contain group by which jqgrid uses.
Override in the repository class if needed. Should do nothing otherwise
in JQGridTrait at line 61
array
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)
JQGrid function
in JQGridTrait at line 94
array
searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
JQGrid function
at line 57
BlockElement|string
save(BlockElement $object)
Save Block Element
at line 79
bool|string
saveMultiple(array $elements, int $flushNumber = 30)
Save multiple block elements
at line 108
BlockElement|string
edit(BlockElement $object)
Edit Block Element
at line 128
bool|string
deleteMultiple(array $objects)
Delete multiple Block Elements
at line 149
array
getBlocksByIds(array $ids)
Get multiple blocks by array of ids
at line 164
array
getAllBlocksForPageBuilder()
Get array of all block elements
at line 180
array
getBlockElementSimple(int $id)
Get block element data for specified id
at line 195
array
findByEntity(string $entity)
Get all Block elements for specified entity
at line 210
array
findBlockByLayoutTitle(string $title)
Get all Block elements for specified layout title
at line 225
array
getBlocksForTmce(array $params)
Get all block elements for defined params
at line 247
array
findBlocksByTheme(string|int $theme)
Get all blocks for theme, param can be theme name of theme id
at line 265
array
getEntitiesForBlockElementsExtension(array $ids)
at line 287
array
getEntityNamesForIds(array $ids)
at line 305
array
findBlockByLocation(string $location, string $entityName)
Find all block elements for location and entity name
at line 322
array
findAllWithTemplatesAsArray(array|null $blocks = null)
Get all block elements with theme name and template data