GraphUtils::getIntervalsHtml

Usage

string GraphUtils::getIntervalsHtml([ string $selected = 'D3' ], [ string $uri = '' ])

Description

Generates a line of time intervals (eg. 24H, 1D, 3D, 1W, 3M, 1Y, 5Y, etc.) allowing user to click which time period they would like to view.

Parameters

Parameter Required Type Description
$selected No string The time interval currently being viewed. This interval will not be hyperlinked within the results.
$uri No string Optional URI to link all intervals to. If not specified, will use the current URI being viewed.

Return Value

String containing HTML code that can be placed just above a table, allowing user to select time interval to display. All links will have ?period=XX" at the end to specify the time interval being clicked.

See Also