European Week of Regions and Cities

Room

Room class contains helpers functions.

Table of Contents

Properties

$database  : Connection
The database connection.
$entityTypeManager  : EntityTypeManagerInterface
The entity type manager.

Methods

__construct()  : mixed
Session helper Constructor.
getBuildingName()  : mixed
Return building name from room id.
getRoomName()  : mixed
Return room name from id.
getSquareRooms()  : mixed
Return rooms of Square building.

Properties

$database

The database connection.

protected Connection $database

$entityTypeManager

The entity type manager.

protected EntityTypeManagerInterface $entityTypeManager

Methods

__construct()

Session helper Constructor.

public __construct(Connection $database, EntityTypeManagerInterface $entity_type_manager) : mixed
Parameters
$database : Connection
$entity_type_manager : EntityTypeManagerInterface

getBuildingName()

Return building name from room id.

public getBuildingName(mixed $roomId) : mixed
Parameters
$roomId : mixed

getRoomName()

Return room name from id.

public getRoomName(mixed $roomId) : mixed
Parameters
$roomId : mixed

getSquareRooms()

Return rooms of Square building.

public getSquareRooms() : mixed

        
On this page

Search results