PHP Класс Piwik\Plugins\CoreHome\DataTableRowAction\RowEvolution

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$apiMethod The api method to get the data. Format: Plugin.apiAction
$availableMetrics The metrics that are available for the requested report and period
$dataTable Piwik\DataTable The data
$date The requested date
$dimension The name of the dimension of the current report
$graphMetrics The metrics for the graph that has been requested last
$graphType The type of graph that has been requested last
$idSite The current site id
$initiallyShowAllMetrics Whether or not to show all metrics in the evolution graph when to popover opens
$label The label of the requested row
$period The requested period
$rowIcon The icon of the current record
$rowLabel The label of the current record
$segment The request segment

Открытые методы

Метод Описание
__construct ( integer $idSite, Date $date, null | string $graphType = 'graphEvolution' ) The constructor Initialize some local variables from the request
getRowEvolutionGraph ( string | boolean $graphType = false, array | boolean $metrics = false ) : Factory Generic method to get an evolution graph or a sparkline for the row evolution popover.
renderPopover ( Controller $controller, $view ) Render the popover
useAvailableMetrics ( ) Use the available metrics for the metrics of the last requested graph.

Защищенные методы

Метод Описание
extractEvolutionReport ( $report )
extractPrettyLabel ( $report ) : string
getMetricsToggles ( ) : array Prepare metrics toggles with spark lines
getSparkline ( $metric ) Get the img tag for a sparkline showing a single metric
loadEvolutionReport ( $column = false )

Приватные методы

Метод Описание
getFirstAndLastDataPointsForMetric ( $metric )

Описание методов

__construct() публичный Метод

The constructor Initialize some local variables from the request
public __construct ( integer $idSite, Date $date, null | string $graphType = 'graphEvolution' )
$idSite integer
$date Piwik\Date ($this->date from controller)
$graphType null | string

extractEvolutionReport() защищенный Метод

protected extractEvolutionReport ( $report )

extractPrettyLabel() защищенный Метод

protected extractPrettyLabel ( $report ) : string
$report
Результат string

getMetricsToggles() защищенный Метод

Prepare metrics toggles with spark lines
protected getMetricsToggles ( ) : array
Результат array

getRowEvolutionGraph() публичный Метод

Do as much as possible from outside the controller.
public getRowEvolutionGraph ( string | boolean $graphType = false, array | boolean $metrics = false ) : Factory
$graphType string | boolean
$metrics array | boolean
Результат Piwik\ViewDataTable\Factory

getSparkline() защищенный Метод

Get the img tag for a sparkline showing a single metric
protected getSparkline ( $metric )

loadEvolutionReport() защищенный Метод

protected loadEvolutionReport ( $column = false )

renderPopover() публичный Метод

Render the popover
public renderPopover ( Controller $controller, $view )
$controller Piwik\Plugins\CoreHome\Controller

useAvailableMetrics() публичный Метод

Use the available metrics for the metrics of the last requested graph.
public useAvailableMetrics ( )

Описание свойств

$apiMethod защищенное свойство

The api method to get the data. Format: Plugin.apiAction
protected $apiMethod

$availableMetrics защищенное свойство

The metrics that are available for the requested report and period
protected $availableMetrics

$dataTable защищенное свойство

The data
protected DataTable,Piwik $dataTable
Результат Piwik\DataTable

$date защищенное свойство

The requested date
protected $date

$dimension защищенное свойство

The name of the dimension of the current report
protected $dimension

$graphMetrics защищенное свойство

The metrics for the graph that has been requested last
protected $graphMetrics

$graphType защищенное свойство

The type of graph that has been requested last
protected $graphType

$idSite защищенное свойство

The current site id
protected $idSite

$initiallyShowAllMetrics защищенное свойство

Whether or not to show all metrics in the evolution graph when to popover opens
protected $initiallyShowAllMetrics

$label защищенное свойство

The label of the requested row
protected $label

$period защищенное свойство

The requested period
protected $period

$rowIcon защищенное свойство

The icon of the current record
protected $rowIcon

$rowLabel защищенное свойство

The label of the current record
protected $rowLabel

$segment защищенное свойство

The request segment
protected $segment