European Week of Regions and Cities

ProgrammePdf extends ControllerBase

Generate the programame PDF.

Table of Contents

Properties

$cmsConector  : CMSConnector
CMS rest API connector.
$configFactory  : ConfigFactoryInterface
Drupal config factory.
$dateFormatter  : DateFormatterInterface
The date formatter service.
$extensionListModule  : ModuleExtensionList
The list of available modules.
$fileSystem  : FileSystem
Drupal file system.
$httpClient  : Client
Guzzle\Client instance.
$loggerFactory  : LoggerChannelFactoryInterface
Logger channel factory interface instance.
$render  : Renderer
Drupal renderer.
$stateService  : StateInterface
The Drupal State API service.

Methods

__construct()  : mixed
ProgrammePdf constructor.
formatLines()  : mixed
Custom function that convert lines of sessions in html tables.
getData()  : mixed
Custom function that returns the data to create the sessions list pdf.
getDay()  : mixed
Custom function that output the day block into html.
getLines()  : mixed
Custom function that get the sessions lines.
group()  : mixed
Custom function to group sessions by day.
order()  : mixed
Custom function to set the order of the sessions.
pdfGenerate()  : mixed
Custom function that generates the whole sessions list pdf.
prepare()  : mixed
Custom function that prepare each session data for the pdf creation.
save()  : mixed
Custom function that saves the sessions pdf.

Properties

$configFactory

Drupal config factory.

protected ConfigFactoryInterface $configFactory

$dateFormatter

The date formatter service.

protected DateFormatterInterface $dateFormatter

$extensionListModule

The list of available modules.

protected ModuleExtensionList $extensionListModule

$fileSystem

Drupal file system.

protected FileSystem $fileSystem

$httpClient

Guzzle\Client instance.

protected Client $httpClient

$loggerFactory

Logger channel factory interface instance.

protected LoggerChannelFactoryInterface $loggerFactory

$stateService

The Drupal State API service.

protected StateInterface $stateService

Methods

__construct()

ProgrammePdf constructor.

public __construct(CMSConnector $cmsConector, StateInterface $stateService, Client $http_client, LoggerChannelFactoryInterface $factory, ConfigFactoryInterface $config_factory, DateFormatterInterface $date_formatter, Renderer $renderer, FileSystemInterface $file_system, ModuleExtensionList $extension_list_module) : mixed
Parameters
$cmsConector : CMSConnector

Connector to the CMS JSON API.

$stateService : StateInterface

Drupal State API service.

$http_client : Client

Guzzle\Client instance.

$factory : LoggerChannelFactoryInterface

A logger channel factory interface instance.

$config_factory : ConfigFactoryInterface

Drupal config factory.

$date_formatter : DateFormatterInterface

Drupal Date formatter.

$renderer : Renderer

Drupal renderer.

$file_system : FileSystemInterface

Drupal file system.

$extension_list_module : ModuleExtensionList

The list of available modules.

formatLines()

Custom function that convert lines of sessions in html tables.

public formatLines(mixed $lines) : mixed
Parameters
$lines : mixed

getData()

Custom function that returns the data to create the sessions list pdf.

public getData(mixed $year) : mixed
Parameters
$year : mixed

getDay()

Custom function that output the day block into html.

public getDay(mixed $day) : mixed
Parameters
$day : mixed

getLines()

Custom function that get the sessions lines.

public getLines(mixed $sessions) : mixed
Parameters
$sessions : mixed

group()

Custom function to group sessions by day.

public group(mixed $sessions) : mixed
Parameters
$sessions : mixed

order()

Custom function to set the order of the sessions.

public order(mixed $sessions) : mixed
Parameters
$sessions : mixed

pdfGenerate()

Custom function that generates the whole sessions list pdf.

public pdfGenerate() : mixed

prepare()

Custom function that prepare each session data for the pdf creation.

public prepare(mixed $data) : mixed
Parameters
$data : mixed

save()

Custom function that saves the sessions pdf.

public save(mixed $data, mixed $path) : mixed
Parameters
$data : mixed
$path : mixed

        
On this page

Search results