ReviewsController
extends Controller
in package
Reviews controller.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- ReviewsController constructor.
- indexAction() : mixed
- Lists all sale entities.
- paginateCustomerReviewsAction() : JsonResponse
- Paginate customer reviews for DataTables
- showAllReviewsAction() : mixed
- Lists processing Orders having all products in stock and not printed.
- determineReviewType() : string
- Détermine le type d'avis (positif, négatif, neutre)
- formatFullComment() : string
- Formate le commentaire complet sans troncature pour l'affichage
- formatStarRating() : string
- Formate la note en étoiles pour l'affichage
- getColumnNameByIndex() : string|null
- Convertit l'index de colonne en nom de colonne
- getReviewTypeText() : string
- Obtient le texte du type d'avis pour le filtrage
Properties
$reviewsService
protected
ReviewsService
$reviewsService
Methods
__construct()
ReviewsController constructor.
public
__construct(ReviewsService $reviewsService) : mixed
Parameters
- $reviewsService : ReviewsService
indexAction()
Lists all sale entities.
public
indexAction() : mixed
Tags
paginateCustomerReviewsAction()
Paginate customer reviews for DataTables
public
paginateCustomerReviewsAction(Request $request[, string $source = 'menzzo.fr' ]) : JsonResponse
Parameters
- $request : Request
- $source : string = 'menzzo.fr'
Tags
Return values
JsonResponseshowAllReviewsAction()
Lists processing Orders having all products in stock and not printed.
public
showAllReviewsAction(Request $request[, mixed $source = null ]) : mixed
Parameters
- $request : Request
- $source : mixed = null
Tags
determineReviewType()
Détermine le type d'avis (positif, négatif, neutre)
private
determineReviewType(array<string|int, mixed> $review) : string
Parameters
- $review : array<string|int, mixed>
Return values
stringformatFullComment()
Formate le commentaire complet sans troncature pour l'affichage
private
formatFullComment(string $comment) : string
Parameters
- $comment : string
Return values
stringformatStarRating()
Formate la note en étoiles pour l'affichage
private
formatStarRating(float $rating) : string
Parameters
- $rating : float
Return values
stringgetColumnNameByIndex()
Convertit l'index de colonne en nom de colonne
private
getColumnNameByIndex(int $columnIndex) : string|null
Parameters
- $columnIndex : int
Return values
string|nullgetReviewTypeText()
Obtient le texte du type d'avis pour le filtrage
private
getReviewTypeText(array<string|int, mixed> $review) : string
Parameters
- $review : array<string|int, mixed>