European Week of Regions and Cities

Booking

Session class contains helpers functions.

Table of Contents

Properties

$entityTypeManager  : EntityTypeManagerInterface
The entity type manager.
$booking  : booking
Array will temporary contains reservations.
$organisationHelper  : OrganisationHelper
Organisation helper service.
$organisationsToExclure  : organisationsToExclure
Contains organisations to exclure from conflict control.
$preReservations  : preReservations
Contains pre-reserved rooms.
$sessions  : sessions
Array containing sessions.
$slots  : slots
Contains timeslots for every session format.
$timezone  : timezone
Timezone.
$utilsHelper  : UtilsHelper
Utils helper service.
$wsToRoom204  : wsToRoom204
Contains sessions to be assigned to 204 room.

Methods

__construct()  : mixed
Constructor.
create()  : mixed
Create container.
startSplitSessions()  : mixed
Start split sessions according timeslots / rooms / buildings.
allocateDayAndTime()  : mixed
Function to search and reserve date and time slot for session.
bookSession()  : mixed
Reserve timeslot / Room for session.
getPreReservations()  : mixed
Return an array with all pre-reseved rooms/timeslots (only for COR).
organisationIsInConflict()  : mixed
Return if two sessions has the same organisation in the same timeslot.
prepareAndInjectPreReservation()  : mixed
Prepare and inject pre-reservation on booking array.
tagAlreadyTakenPlaces()  : mixed
Tag already taken preservation.

Properties

$entityTypeManager

The entity type manager.

protected EntityTypeManagerInterface $entityTypeManager

$booking

Array will temporary contains reservations.

private booking $booking

$organisationHelper

Organisation helper service.

private OrganisationHelper $organisationHelper

$organisationsToExclure

Contains organisations to exclure from conflict control.

private organisationsToExclure $organisationsToExclure

$preReservations

Contains pre-reserved rooms.

private preReservations $preReservations

$sessions

Array containing sessions.

private sessions $sessions

$slots

Contains timeslots for every session format.

private slots $slots

$timezone

Timezone.

private timezone $timezone

$utilsHelper

Utils helper service.

private UtilsHelper $utilsHelper

$wsToRoom204

Contains sessions to be assigned to 204 room.

private wsToRoom204 $wsToRoom204

Methods

__construct()

Constructor.

public __construct(mixed $sessions, EntityTypeManagerInterface $entity_type_manager, Utils $utilsHelper, Organisation $organisationHelper) : mixed
Parameters
$sessions : mixed
$entity_type_manager : EntityTypeManagerInterface
$utilsHelper : Utils
$organisationHelper : Organisation

create()

Create container.

public static create(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

startSplitSessions()

Start split sessions according timeslots / rooms / buildings.

public startSplitSessions() : mixed

allocateDayAndTime()

Function to search and reserve date and time slot for session.

private allocateDayAndTime(mixed $session, mixed $roomId) : mixed
Parameters
$session : mixed
$roomId : mixed

bookSession()

Reserve timeslot / Room for session.

private bookSession(mixed $session) : mixed
Parameters
$session : mixed

getPreReservations()

Return an array with all pre-reseved rooms/timeslots (only for COR).

private getPreReservations() : mixed

organisationIsInConflict()

Return if two sessions has the same organisation in the same timeslot.

private organisationIsInConflict(mixed $organisationId, mixed $day, mixed $from, mixed $to) : mixed
Parameters
$organisationId : mixed
$day : mixed
$from : mixed
$to : mixed

prepareAndInjectPreReservation()

Prepare and inject pre-reservation on booking array.

private prepareAndInjectPreReservation(mixed $params) : mixed
Parameters
$params : mixed

tagAlreadyTakenPlaces()

Tag already taken preservation.

private tagAlreadyTakenPlaces() : mixed

        
On this page

Search results