Logidav Docs

MerchantsProductsController extends Controller
in package

MerchantsProducts controller.

Tags
Route

("merchants-products")

Table of Contents

Methods

getFiltersStateAction()  : mixed
indexAction()  : mixed
Lists all product entities.
paginateProductsMerchantsAction()  : JsonResponse
paginateProductsMerchantsAlertsAction()  : JsonResponse
productAlertAction()  : mixed
Lists all product entities alerts.
groupAlertsBySku()  : array<string|int, mixed>
Transforme un Paginator de MerchantsProductsAlerts en un tableau associatif groupé par SKU.

Methods

indexAction()

Lists all product entities.

public indexAction() : mixed
Tags
Route

("/", name="product_merchants_info_index")

Method

({"GET", "POST"})

paginateProductsMerchantsAction()

public paginateProductsMerchantsAction(Request $request, MerchantsProductsService $merchantsProductsService) : JsonResponse
Parameters
$request : Request
$merchantsProductsService : MerchantsProductsService
Tags
Route

("/product-merchants-paginate", name="product_merchants_paginate")

Method

({"GET", "POST"})

throws
NonUniqueResultException
Return values
JsonResponse

paginateProductsMerchantsAlertsAction()

public paginateProductsMerchantsAlertsAction(Request $request) : JsonResponse
Parameters
$request : Request
Tags
Route

("/product-merchants-alerts-paginate", name="product_merchants_alerts_paginate")

Method

({"GET", "POST"})

Return values
JsonResponse

groupAlertsBySku()

Transforme un Paginator de MerchantsProductsAlerts en un tableau associatif groupé par SKU.

private groupAlertsBySku(Paginator|iterable<string|int, mixed> $alertsPaginator) : array<string|int, mixed>
Parameters
$alertsPaginator : Paginator|iterable<string|int, mixed>
Return values
array<string|int, mixed>

[ sku => [ 'merchants' => [], 'errors' => [], 'images' => [], 'links' => [] ] ]


        
On this page

Search results