GetUserAnalytics
in package
Utility class to retrieve statistical data.
Table of Contents
Properties
- $configFactory : ConfigFactory
- Configuration Factory.
- $database : Connection
- The database connection.
- $dateFormatter : DateFormatterInterface
- The date formatter service.
- $entityTypeManager : EntityTypeManagerInterface
- The entity type manager.
- $session : Session
- Session helper.
- $userHelper : UserHelper
- UserHelper functions.
Methods
- __construct() : mixed
- GetUserAnalytics Constructor.
- buildTable() : mixed
- Build table with the number of matching fields.
- buildTableHeader() : mixed
- Build table header.
- buildTableRow() : mixed
- Build table row.
- buildTableRows() : mixed
- Build table rows.
- create() : mixed
- Create container.
- generateTable() : mixed
- Retrieve statistical data.
Properties
$configFactory
Configuration Factory.
protected
ConfigFactory
$configFactory
$database
The database connection.
protected
Connection
$database
$dateFormatter
The date formatter service.
protected
DateFormatterInterface
$dateFormatter
$entityTypeManager
The entity type manager.
protected
EntityTypeManagerInterface
$entityTypeManager
$session
Session helper.
protected
Session
$session
$userHelper
UserHelper functions.
protected
UserHelper
$userHelper
Methods
__construct()
GetUserAnalytics Constructor.
public
__construct(Connection $database, EntityTypeManagerInterface $entityTypeManager, ConfigFactory $configFactory, DateFormatterInterface $dateFormatter, UserHelper $userHelper, Session $session) : mixed
Parameters
- $database : Connection
- $entityTypeManager : EntityTypeManagerInterface
- $configFactory : ConfigFactory
- $dateFormatter : DateFormatterInterface
- $userHelper : UserHelper
- $session : Session
buildTable()
Build table with the number of matching fields.
public
buildTable(mixed $counts, mixed $headers) : mixed
Parameters
- $counts : mixed
- $headers : mixed
buildTableHeader()
Build table header.
public
buildTableHeader(mixed $header_items) : mixed
Parameters
- $header_items : mixed
buildTableRow()
Build table row.
public
buildTableRow(mixed $header_values, mixed $key, mixed $row, mixed &$row_totals) : mixed
Parameters
- $header_values : mixed
- $key : mixed
- $row : mixed
- $row_totals : mixed
Tags
buildTableRows()
Build table rows.
public
buildTableRows(mixed $header_values, mixed $counts) : mixed
Parameters
- $header_values : mixed
- $counts : mixed
create()
Create container.
public
create(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
generateTable()
Retrieve statistical data.
public
generateTable() : mixed