PHP Class Piwik\Plugins\CoreHome\Controller

Inheritance: extends Piwik\Plugin\Controller
Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( Piwik\Translation\Translator $translator )
checkForUpdates ( ) Forces a check for updates and re-renders the header message.
getDefaultAction ( )
getMultiRowEvolutionPopover ( ) Render the entire row evolution popover for multiple rows
getRowEvolutionGraph ( $fetch = false, $rowEvolution = null ) Generic method to get an evolution graph or a sparkline for the row evolution popover
getRowEvolutionPopover ( ) Render the entire row evolution popover for a single row
index ( )
markNotificationAsRead ( )
redirectToCoreHomeIndex ( )
redirectToPaypal ( ) Redirects the user to a paypal so they can donate to Piwik.
renderReportWidget ( Report $report )
renderWidget ( Widget $widget ) : mixed
renderWidgetContainer ( ) : string This is only used for exported widgets
saveViewDataTableParameters ( )
showInContext ( )

Protected Methods

Method Description
getDefaultIndexView ( )
setDateTodayIfWebsiteCreatedToday ( )

Private Methods

Method Description
makeRowEvolution ( $isMultiRowEvolution, $graphType = null ) Utility function. Creates a RowEvolution instance.

Method Details

__construct() public method

public __construct ( Piwik\Translation\Translator $translator )
$translator Piwik\Translation\Translator

checkForUpdates() public method

This will check piwik.org at most once per 10s.
public checkForUpdates ( )

getDefaultAction() public method

public getDefaultAction ( )

getDefaultIndexView() protected method

protected getDefaultIndexView ( )

getMultiRowEvolutionPopover() public method

Render the entire row evolution popover for multiple rows

getRowEvolutionGraph() public method

Generic method to get an evolution graph or a sparkline for the row evolution popover
public getRowEvolutionGraph ( $fetch = false, $rowEvolution = null )

getRowEvolutionPopover() public method

Render the entire row evolution popover for a single row

index() public method

public index ( )

markNotificationAsRead() public method

redirectToCoreHomeIndex() public method

redirectToPaypal() public method

Redirects the user to a paypal so they can donate to Piwik.
public redirectToPaypal ( )

renderReportWidget() public method

public renderReportWidget ( Report $report )
$report Piwik\Plugin\Report

renderWidget() public method

public renderWidget ( Widget $widget ) : mixed
$widget Piwik\Widget\Widget
return mixed

renderWidgetContainer() public method

This is only used for exported widgets
public renderWidgetContainer ( ) : string
return string

saveViewDataTableParameters() public method

setDateTodayIfWebsiteCreatedToday() protected method

showInContext() public method

public showInContext ( )