class SectionManager implements BasicEntityManagerInterface, JQGridInterface

Class SectionManager is injected as empire_section_info_plugin.manager service. SectionManager handles the logic for managed entity.

Traits

Trait JQGridManagerTrait
Class BlockElementManagerTrait. Handles reading data for block elements

Properties

protected SectionRepository $repository

Methods

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

array
getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

array
getEntityNamesForIds(array $ids)

Get id and name of entity

__construct(SectionRepository $repository, ContainerInterface $container)

SectionManager constructor.

Section|null
getSectionByPk(int $id)

Find section that match provided id

Section|null
getSectionByPkCached(int $id)

Find section(from cache) that match provided id

Section|null
save(Section $section)

Persist/update new section entity

edit(Section $section)

Persist/update new section entity

deleteSections(array $ids)

Remove sections that match provided ids

mixed
hasRoleAdmin()

No description

string
getCurrentLocale()

Retrieve locale from current request

Details

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

array getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

Parameters

array $ids

Return Value

array

array getEntityNamesForIds(array $ids)

Get id and name of entity

Parameters

array $ids

Return Value

array

at line 48
__construct(SectionRepository $repository, ContainerInterface $container)

SectionManager constructor.

Parameters

SectionRepository $repository
ContainerInterface $container

at line 63
Section|null getSectionByPk(int $id)

Find section that match provided id

Parameters

int $id

Return Value

Section|null

Exceptions

NonUniqueResultException

at line 77
Section|null getSectionByPkCached(int $id)

Find section(from cache) that match provided id

Parameters

int $id

Return Value

Section|null

Exceptions

NonUniqueResultException

at line 91
Section|null save(Section $section)

Persist/update new section entity

Parameters

Section $section

Return Value

Section|null

Exceptions

Exception

at line 118
Section edit(Section $section)

Persist/update new section entity

Parameters

Section $section

Return Value

Section

Exceptions

NonUniqueResultException
Exception

at line 171
deleteSections(array $ids)

Remove sections that match provided ids

Parameters

array $ids

at line 179
mixed hasRoleAdmin()

Return Value

mixed

at line 189
string getCurrentLocale()

Retrieve locale from current request

Return Value

string