European Week of Regions and Cities

Session Uses StringTranslationTrait

Session class contains helpers functions.

Table of Contents

Properties

$configFactory  : ConfigFactory
Configuration Factory.
$currentUser  : AccountInterface
Current user account.
$database  : Connection
The database connection.
$entityTypeManager  : EntityTypeManagerInterface
The entity type manager.
$roomHelper  : Room
Room helper.
$sideHelper  : SideEventsSession
Side events helper.
$streamWrapperManager  : StreamWrapperManager
The Stream Wrapper Manager.
$termHelper  : Term
Term helper.
$utils  : Utils
Utils helper.

Methods

__construct()  : mixed
Session helper Constructor.
checkPossibleConflict()  : mixed
Check if current session is in conflict with others.
getAcceptedSessions()  : mixed
Return accepted sessions.
getFormattedData()  : mixed
Custom data set of sessions.
getMergedLeadSessions()  : mixed
Return merged lead sessions.
getRegistrationStatusAndRoomDetails()  : mixed
Return registration status and room details.
getRemainingCapacity()  : mixed
Return remainig seats for session in specific room.
getSessionAttachedByRole()  : mixed
Return auto asigned sessions to specific user roles.
getSessionLanguages()  : mixed
Return session languages.
getSessionsByFormat()  : mixed
Return sessions by format.
getSessionsByTag()  : mixed
Return sessions by tag.
getSessionsWhereUserAttached()  : mixed
Return sessions who user is attached as speaker/moderator/collaborator.
getSideHelper()  : mixed
Return side session helper instance.
getUserRegistrations()  : mixed
Return sessions who current user is already registered in.
getUtilsHelper()  : mixed
Return utils helper instance.
getVenueInformations()  : mixed
Return venue informations for specific session.
sessionsAreInConflict()  : mixed
Return if there is a conflict between two timeslots.
getProfilesByRole()  : mixed
Return list of webform profiles by user role.

Properties

$configFactory

Configuration Factory.

protected ConfigFactory $configFactory

$currentUser

Current user account.

protected AccountInterface $currentUser

$database

The database connection.

protected Connection $database

$entityTypeManager

The entity type manager.

protected EntityTypeManagerInterface $entityTypeManager

$streamWrapperManager

The Stream Wrapper Manager.

protected StreamWrapperManager $streamWrapperManager

Methods

__construct()

Session helper Constructor.

public __construct(Connection $database, EntityTypeManagerInterface $entity_type_manager, ConfigFactory $configFactory, StreamWrapperManager $stream_wrapper_manager, AccountInterface $current_user, Utils $utils, Room $roomHelper, Term $termHelper, SideEventsSession $sideHelper) : mixed
Parameters
$database : Connection
$entity_type_manager : EntityTypeManagerInterface
$configFactory : ConfigFactory
$stream_wrapper_manager : StreamWrapperManager
$current_user : AccountInterface
$utils : Utils
$roomHelper : Room
$termHelper : Term
$sideHelper : SideEventsSession

checkPossibleConflict()

Check if current session is in conflict with others.

public checkPossibleConflict(mixed $sessionData, mixed $registrations) : mixed
Parameters
$sessionData : mixed
$registrations : mixed

getAcceptedSessions()

Return accepted sessions.

public getAcceptedSessions([mixed $uid = NULL ]) : mixed
Parameters
$uid : mixed = NULL

getFormattedData()

Custom data set of sessions.

public getFormattedData(mixed $sessionsIds[, mixed $profileId = NULL ][, mixed $show_action_button = FALSE ]) : mixed
Parameters
$sessionsIds : mixed
$profileId : mixed = NULL
$show_action_button : mixed = FALSE

getMergedLeadSessions()

Return merged lead sessions.

public getMergedLeadSessions([mixed $uid = NULL ]) : mixed
Parameters
$uid : mixed = NULL

getRegistrationStatusAndRoomDetails()

Return registration status and room details.

public getRegistrationStatusAndRoomDetails(mixed $profileId, mixed $sessionData) : mixed
Parameters
$profileId : mixed
$sessionData : mixed

getRemainingCapacity()

Return remainig seats for session in specific room.

public getRemainingCapacity(mixed $sessionData, mixed $real_capacity, mixed $rate_of_no_show) : mixed
Parameters
$sessionData : mixed
$real_capacity : mixed
$rate_of_no_show : mixed

getSessionAttachedByRole()

Return auto asigned sessions to specific user roles.

public getSessionAttachedByRole(mixed $userRoles) : mixed
Parameters
$userRoles : mixed

getSessionLanguages()

Return session languages.

public getSessionLanguages(mixed $sessionData) : mixed
Parameters
$sessionData : mixed

getSessionsByFormat()

Return sessions by format.

public getSessionsByFormat(mixed $fid) : mixed
Parameters
$fid : mixed

getSessionsByTag()

Return sessions by tag.

public getSessionsByTag(mixed $type) : mixed
Parameters
$type : mixed

getSessionsWhereUserAttached()

Return sessions who user is attached as speaker/moderator/collaborator.

public getSessionsWhereUserAttached(mixed $profileId) : mixed
Parameters
$profileId : mixed

getSideHelper()

Return side session helper instance.

public getSideHelper() : mixed

getUserRegistrations()

Return sessions who current user is already registered in.

public getUserRegistrations(mixed $profileId) : mixed
Parameters
$profileId : mixed

getUtilsHelper()

Return utils helper instance.

public getUtilsHelper() : mixed

getVenueInformations()

Return venue informations for specific session.

public getVenueInformations(mixed $keys, mixed $sessionData) : mixed
Parameters
$keys : mixed
$sessionData : mixed

sessionsAreInConflict()

Return if there is a conflict between two timeslots.

public sessionsAreInConflict(mixed $slot1, mixed $slot2, mixed $allowConsecutiveRegistration) : mixed
Parameters
$slot1 : mixed
$slot2 : mixed
$allowConsecutiveRegistration : mixed

getProfilesByRole()

Return list of webform profiles by user role.

private getProfilesByRole(mixed $role) : mixed
Parameters
$role : mixed

        
On this page

Search results