PHP Class Give_Graph, Give

Since: 1.0
Datei anzeigen Open project: wordimpress/give Class Usage Examples

Public Methods

Method Description
__construct ( $_data ) Get things started
build_graph ( ) : string Build the graph and return it as a string
display ( ) Output the final graph
get ( $key ) Get an option
get_data ( ) Get graph data
load_scripts ( ) Load the graphing library script
set ( $key, $value ) Set an option

Method Details

__construct() public method

Get things started
Since: 1.0
public __construct ( $_data )

build_graph() public method

Build the graph and return it as a string
Since: 1.0
public build_graph ( ) : string
return string

display() public method

Output the final graph
Since: 1.0
public display ( )

get() public method

Get an option
Since: 1.0
public get ( $key )
$key The option key to get

get_data() public method

Get graph data
Since: 1.0
public get_data ( )

load_scripts() public method

Load the graphing library script
Since: 1.0
public load_scripts ( )

set() public method

Set an option
Since: 1.0
public set ( $key, $value )
$key The option key to set
$value The value to assign to the key