Analytics
extends Controller
in package
Base class for Lumos controllers.
Table of Contents
Constants
- ROUTE : mixed = '/analytics'
Methods
- button() : mixed
- Emit a properly styled analytics button.
- getAnalytics() : mixed
- graphBody() : mixed
- Chart markup for the analytics modal or page.
- graphScript() : mixed
- Chart script. $json is the view-model URL the browser fetches.
- routes() : mixed
Constants
ROUTE
public
mixed
ROUTE
= '/analytics'
Methods
button()
Emit a properly styled analytics button.
public
static button([mixed $right = false ]) : mixed
This is just the button, using the signal icon. Wrap in a span or div tag if you want to move it around.
Parameters
- $right : mixed = false
getAnalytics()
public
static getAnalytics(Application $app) : mixed
Parameters
- $app : Application
graphBody()
Chart markup for the analytics modal or page.
public
static graphBody() : mixed
graphScript()
Chart script. $json is the view-model URL the browser fetches.
public
static graphScript(mixed $json) : mixed
Parameters
- $json : mixed
routes()
public
static routes(Application $app[, mixed $prefix = self::ROUTE ]) : mixed
Parameters
- $app : Application
- $prefix : mixed = self::ROUTE