PartnersMapPage
extends ControllerBase
in package
Controller for session detail pages.
Table of Contents
Properties
- $database : Connection
- The database connection.
- $entityTypeManager : EntityTypeManagerInterface
- The entity type manager.
Methods
- __construct() : mixed
- GetStatistics Constructor.
- applyWebtoolsStructure() : mixed
- Apply webtools json map structure.
- coordinatesAreSet() : mixed
- Validate coordinates are defined and propperly formatted.
- create() : mixed
- Create config factory.
- getMapJsonData() : mixed
- Get Map Json data.
- getPage() : mixed
- Session page controller callback.
- getModuleName() : mixed
- Return the module name.
- getAcceptedSessions() : mixed
- Return accepted sessions.
- getMergedLeadSessions() : mixed
- Return merged lead sessions.
- getOrganisationCountryName() : mixed
- Get organisation country name.
- getPartnerIds() : mixed
- Get partners ids.
- getSelectedPartners() : mixed
- Get selected partners.
- getSelectedPartnersList() : mixed
- Get selected partners list.
Properties
$database
The database connection.
protected
Connection
$database
$entityTypeManager
The entity type manager.
protected
EntityTypeManagerInterface
$entityTypeManager
Methods
__construct()
GetStatistics Constructor.
public
__construct(Connection $database, EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $factory) : mixed
Parameters
- $database : Connection
- $entityTypeManager : EntityTypeManagerInterface
- $config_factory : ConfigFactoryInterface
- $factory : LoggerChannelFactoryInterface
applyWebtoolsStructure()
Apply webtools json map structure.
public
applyWebtoolsStructure(mixed $organisations) : mixed
Parameters
- $organisations : mixed
coordinatesAreSet()
Validate coordinates are defined and propperly formatted.
public
coordinatesAreSet(mixed $longitude, mixed $latitude, mixed $sid, mixed $name) : mixed
Parameters
- $longitude : mixed
- $latitude : mixed
- $sid : mixed
- $name : mixed
create()
Create config factory.
public
static create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
getMapJsonData()
Get Map Json data.
public
getMapJsonData() : mixed
getPage()
Session page controller callback.
public
getPage() : mixed
getModuleName()
Return the module name.
protected
getModuleName() : mixed
getAcceptedSessions()
Return accepted sessions.
private
getAcceptedSessions([mixed $uid = NULL ]) : mixed
Parameters
- $uid : mixed = NULL
getMergedLeadSessions()
Return merged lead sessions.
private
getMergedLeadSessions([mixed $uid = NULL ]) : mixed
Parameters
- $uid : mixed = NULL
getOrganisationCountryName()
Get organisation country name.
private
getOrganisationCountryName(mixed $organisation) : mixed
Parameters
- $organisation : mixed
getPartnerIds()
Get partners ids.
private
getPartnerIds(mixed $sessionData) : mixed
Parameters
- $sessionData : mixed
getSelectedPartners()
Get selected partners.
private
getSelectedPartners() : mixed
getSelectedPartnersList()
Get selected partners list.
private
getSelectedPartnersList() : mixed