class ProductVideoManager implements JQGridInterface, BasicEntityManagerInterface

Class ProductVideoManager is injected as service. ProductVideoManager handles the logic for entity.

Traits

Trait JQGridManagerTrait

Constants

UPLOAD_TYPE

PLAYLIST_TYPE

Properties

protected ProductVideoRepository $repository
protected ProductVideoEventContainer $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(ProductVideoRepository $repository, ProductVideoEventContainer $eventContainer)

No description

mixed
getProductForVideo(ProductVideo $video)

No description

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

Get data for JqGrid

mixed
deleteProductVideos(array $productVideos)

Delete multiple videos

mixed
getVideosArray(array $productVideosArray)

Get multiple videos

mixed
getVideoByProduct(int $id)

Get video for product id

mixed
getVideoByPk(int $id)

Get video by id

mixed
hasRoleAdmin()

No description

string
getCurrentLocale()

No description

setProductVideoFile(ProductVideo $productVideo)

Save video

setProductVideoFileForEdit(ProductVideo $productVideo, ProductVideo $dbProductVideo)

Edit video file

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 42
__construct(ProductVideoRepository $repository, ProductVideoEventContainer $eventContainer)

Parameters

ProductVideoRepository $repository
ProductVideoEventContainer $eventContainer

at line 56
PrimaryKeyInterface saveProductVideo(ProductVideo $video)

Save entity

Parameters

ProductVideo $video

Return Value

PrimaryKeyInterface

Exceptions

Exception

at line 86
PrimaryKeyInterface editProductVideo(ProductVideo $video)

Merge entity

Parameters

ProductVideo $video

Return Value

PrimaryKeyInterface

Exceptions

Exception

at line 128
mixed getProductForVideo(ProductVideo $video)

Parameters

ProductVideo $video

Return Value

mixed

Exceptions

NoResultException
NonUniqueResultException

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

Get data for JqGrid

Parameters

string $nameString
int $page
int $offset

Return Value

mixed

at line 152
mixed deleteProductVideos(array $productVideos)

Delete multiple videos

Parameters

array $productVideos

Return Value

mixed

at line 165
mixed getVideosArray(array $productVideosArray)

Get multiple videos

Parameters

array $productVideosArray

Return Value

mixed

at line 176
mixed getVideoByProduct(int $id)

Get video for product id

Parameters

int $id

Return Value

mixed

at line 187
mixed getVideoByPk(int $id)

Get video by id

Parameters

int $id

Return Value

mixed

at line 195
mixed hasRoleAdmin()

Return Value

mixed

at line 203
string getCurrentLocale()

Return Value

string

at line 214
protected ProductVideo setProductVideoFile(ProductVideo $productVideo)

Save video

Parameters

ProductVideo $productVideo

Return Value

ProductVideo

at line 231
protected ProductVideo setProductVideoFileForEdit(ProductVideo $productVideo, ProductVideo $dbProductVideo)

Edit video file

Parameters

ProductVideo $productVideo
ProductVideo $dbProductVideo

Return Value

ProductVideo