class PackageManager implements BasicEntityManagerInterface, JQGridInterface

Class PackageManager is injected as alligator.package.manager service. PackageManager handles the logic for managed entity.

Traits

Trait JQGridManagerTrait

Properties

protected PackageRepository $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

__construct(PackageRepository $repository)

PackageManager constructor.

save(Package $package)

Persist new package

string|bool
saveMultiple(array $packages)

Persist collecion of packages

edit(Package $package)

Edit package

Package|null
getOne(int $id)

Find package by id

array
findAllForList()

Find all packages

bool
delete(array $ids)

Remove packages for provided array of ids

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 34
__construct(PackageRepository $repository)

PackageManager constructor.

Parameters

PackageRepository $repository

at line 47
Package save(Package $package)

Persist new package

Parameters

Package $package

Return Value

Package

Exceptions

Exception

at line 58
string|bool saveMultiple(array $packages)

Persist collecion of packages

Parameters

array $packages

Return Value

string|bool

at line 71
Package edit(Package $package)

Edit package

Parameters

Package $package

Return Value

Package

Exceptions

Exception

at line 86
Package|null getOne(int $id)

Find package by id

Parameters

int $id

Return Value

Package|null

at line 95
array findAllForList()

Find all packages

Return Value

array

at line 106
bool delete(array $ids)

Remove packages for provided array of ids

Parameters

array $ids

Return Value

bool