Function __global->_stats_get_graph_context

Definitions

sources/stats.php

  • Get context details (filter & pivot settings) for a particular graph.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$graph_details array required parameter N/A N/A Map of graph details
$filters array [] N/A N/A Filter settings to take precedence
$pivot ?mixed Null N/A N/A Pivot value to take precedence (null: none)
$for_kpi boolean False N/A N/A Whether this is for setting up a KPI

Return

  • A pair: filters, pivot
  • Type: array
  • Set: N/A
  • Range: N/A