class BlockPageManager implements BasicEntityManagerInterface

Class BlockPageManager is injected as empire_block_page.manager service. BlockPageManager handles the logic for entity.

Traits

Trait JQGridManagerTrait

Properties

protected BlockPageRepository $repository
protected BlockElementsEventContainer $eventContainer

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

__construct(BlockPageRepository $repository, BlockElementsEventContainer $eventContainer, DoctrineRoutingHelper $routingHelper)

BlockElementsManager constructor.

BlockPage|string
save(BlockPage $obj)

Save new block page

findBlockPageBySlug(string $param)

Get Single Block Page by slug or id

deletePages(array $ids)

Delete multiple pages

mixed
getProductsByNameJSON(string $nameString, int $page, int $offset)

Do product search by text

array
getBrandsByNameJSON(string $nameString, int $page, int $offset)

Get brands by search string

array
getCategoriesByNameJSON(string $nameString, int $page, int $offset)

Get categories by search string

string
prepareTitle(string $title)

Prepare block page title by removing special characters

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

at line 44
__construct(BlockPageRepository $repository, BlockElementsEventContainer $eventContainer, DoctrineRoutingHelper $routingHelper)

BlockElementsManager constructor.

Parameters

BlockPageRepository $repository
BlockElementsEventContainer $eventContainer
DoctrineRoutingHelper $routingHelper

at line 60
BlockPage|string save(BlockPage $obj)

Save new block page

Parameters

BlockPage $obj

Return Value

BlockPage|string

Exceptions

NoResultException
NonUniqueResultException

at line 130
BlockPage findBlockPageBySlug(string $param)

Get Single Block Page by slug or id

Parameters

string $param

Return Value

BlockPage

Exceptions

NoResultException
NonUniqueResultException

at line 142
deletePages(array $ids)

Delete multiple pages

Parameters

array $ids

Exceptions

ORMException
OptimisticLockException

at line 155
mixed getProductsByNameJSON(string $nameString, int $page, int $offset)

Do product search by text

Parameters

string $nameString
int $page
int $offset

Return Value

mixed

at line 168
array getBrandsByNameJSON(string $nameString, int $page, int $offset)

Get brands by search string

Parameters

string $nameString
int $page
int $offset

Return Value

array

at line 181
array getCategoriesByNameJSON(string $nameString, int $page, int $offset)

Get categories by search string

Parameters

string $nameString
int $page
int $offset

Return Value

array

at line 192
string prepareTitle(string $title)

Prepare block page title by removing special characters

Parameters

string $title

Return Value

string