Handles incoming notification api-calls by finding or creating a synchronization and synchronizing an object.
| Name | Description |
|---|---|
| __construct | The constructor sets al needed variables. |
| downloadCSV | Generates a CSV response from a given CSV string. |
| downloadDocx | Downloads a docx. |
| downloadHtml | Downloads a html. |
| downloadPdf | Downloads a pdf. |
| downloadXLSX | Generates an XLSX response from a given array of associative arrays. |
| render | Renders a pdf. |
Description
public __construct (\EntityManagerInterface $entityManager, \LoggerInterface $requestLogger, \Environment $twig)The constructor sets al needed variables.
Parameters
(\EntityManagerInterface) $entityManager: The EntityManager(\LoggerInterface) $requestLogger: The Logger(\Environment) $twig: Twig
Return Values
void
Description
public downloadCSV (string $csvString)Generates a CSV response from a given CSV string.
This method takes a CSV-formatted string and creates a downloadable CSV response.
The client will be prompted to download the resulting file with the name "data.csv".
Parameters
(string) $csvString: The CSV-formatted string to be returned as a downloadable file.
Return Values
\Response
A Symfony response object that serves the provided CSV string as a downloadable CSV file.
Description
public downloadDocx (array $data)Downloads a docx.
The html that is added has to be whitout a <style></style> section.
Parameters
(array) $data: The data to render for this docx.
Return Values
string
The docx as file output.
Description
public downloadHtml (array $data)Downloads a html.
Parameters
(array) $data: The data to render for this html.
Return Values
string
The html as file output.
Description
public downloadPdf (array $data, string|null $templateRef)Downloads a pdf.
Parameters
(array) $data: The data to render for this pdf.(string|null) $templateRef: The templateRef.
Return Values
string
The pdf as string output.
Description
public downloadXLSX (array $objects)Generates an XLSX response from a given array of associative arrays.
This method takes an array of associative arrays (potentially having nested arrays) and
creates an XLSX spreadsheet with columns for each unique key (using dot notation for nested keys).
The method then streams this spreadsheet as a downloadable XLSX file to the client.
Parameters
(array) $objects: An array of associative arrays to convert into an XLSX file.
Return Values
\Response
A Symfony response object that allows the client to download the generated XLSX file.
Description
public render (array $data, string|null $templateRef)Renders a pdf.
Parameters
(array) $data: The data to render.(string|null) $templateRef: The templateRef.
Return Values
string
The content rendered.