European Week of Regions and Cities

User

User class contains helpers functions.

Table of Contents

Properties

$currentUser  : AccountInterface
Current user account.
$database  : Connection
The database connection.
$entityTypeManager  : EntityTypeManagerInterface
The entity type manager.
$utilsHelper  : Utils
Utils helper.

Methods

__construct()  : mixed
User helper Constructor.
getCoordinatorData()  : mixed
Get session coordinator details.
getCurrentProfileId()  : mixed
Return current user profile id.
getCurrentUser()  : mixed
Getter function for currentUser.
getInvitedPersons()  : mixed
Return invited persons not yet registered.
getPersons()  : mixed
Return attached and invited speakers/moderators/collaborators.
getProfile()  : mixed
Return profile by user id.
getProfilesData()  : mixed
Helper to return specific profile data.
getProfilesDetails()  : mixed
Get profile Details.
getUserEmailByProfileId()  : mixed
Return User email by profile id.

Properties

$currentUser

Current user account.

protected AccountInterface $currentUser

$database

The database connection.

protected Connection $database

$entityTypeManager

The entity type manager.

protected EntityTypeManagerInterface $entityTypeManager

$utilsHelper

Utils helper.

protected Utils $utilsHelper

Methods

__construct()

User helper Constructor.

public __construct(Connection $database, EntityTypeManagerInterface $entity_type_manager, Utils $utilsHelper, AccountInterface $current_user) : mixed
Parameters
$database : Connection
$entity_type_manager : EntityTypeManagerInterface
$utilsHelper : Utils
$current_user : AccountInterface

getCoordinatorData()

Get session coordinator details.

public getCoordinatorData(mixed $session) : mixed
Parameters
$session : mixed

getCurrentProfileId()

Return current user profile id.

public getCurrentProfileId() : mixed

getCurrentUser()

Getter function for currentUser.

public getCurrentUser() : mixed

getInvitedPersons()

Return invited persons not yet registered.

public getInvitedPersons(mixed $sessionId) : mixed
Parameters
$sessionId : mixed

getPersons()

Return attached and invited speakers/moderators/collaborators.

public getPersons(mixed $profilesIds, mixed $invitedUsers) : mixed
Parameters
$profilesIds : mixed
$invitedUsers : mixed

getProfile()

Return profile by user id.

public getProfile(mixed $uid) : mixed
Parameters
$uid : mixed

getProfilesData()

Helper to return specific profile data.

public getProfilesData(mixed $profiles[, mixed $args = [] ]) : mixed
Parameters
$profiles : mixed
$args : mixed = []

getProfilesDetails()

Get profile Details.

public getProfilesDetails([mixed $profiles = [] ]) : mixed
Parameters
$profiles : mixed = []

getUserEmailByProfileId()

Return User email by profile id.

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

        
On this page

Search results