class Lavacharts (View source)

Properties

Volcano $volcano Holds all of the defined Charts and DataTables.
JavascriptFactory $jsFactory Javascript factory class for lava.js and chart js

Methods

__construct()

Creates Volcano & Javascript Factory

mixed
__call( string $member, array $arguments)

Magic function to reduce repetitive coding and create aliases.

string
render( string $chartType, string $chartLabel, string $elementId, mixed $divDimensions = false)

Renders the chart into the page

string
jsapi()

Outputs the link to the Google JSAPI

string
exists($type, $label)

Checks to see if the given chart type and title exists in the volcano storage.

Details

at line 114
__construct()

Creates Volcano & Javascript Factory

at line 141
mixed __call( string $member, array $arguments)

Magic function to reduce repetitive coding and create aliases.

Parameters

string $member Name of method
array $arguments Passed arguments

Return Value

mixed Returns Charts, DataTables, and Config Objects

Exceptions

InvalidLavaObject
InvalidChartLabel

at line 222
string render( string $chartType, string $chartLabel, string $elementId, mixed $divDimensions = false)

Renders the chart into the page

Given a chart label and an HTML element id, this will output all of the necessary javascript to generate the chart.

Parameters

string $chartType Type of chart to render.
string $chartLabel Label of a saved chart.
string $elementId HTML element id to render the chart into.
mixed $divDimensions Set true for div creation, or pass an array with height & width

Return Value

string

at line 250
string jsapi()

Outputs the link to the Google JSAPI

Return Value

string

at line 265
string exists($type, $label)

Checks to see if the given chart type and title exists in the volcano storage.

Parameters

$type
$label

Return Value

string