class RRDGraph (View source)

Class for exporting data from RRD database to image file.

Methods

__construct($path)

Creates new RRDGraph instance. This instance is responsible for rendering the result of RRD database query into image.

save()

Saves the result of RRD database query into image defined by RRDGraph::__construct().

saveVerbose()

Saves the RRD database query into image and returns the verbose information about generated graph.

If "-" is used as image filename, image data are also returned in result array.

setOptions($options)

Sets the options for rrd graph export

Details

__construct($path)

Creates new RRDGraph instance. This instance is responsible for rendering the result of RRD database query into image.

Parameters

$path

save()

Saves the result of RRD database query into image defined by RRDGraph::__construct().

saveVerbose()

Saves the RRD database query into image and returns the verbose information about generated graph.

If "-" is used as image filename, image data are also returned in result array.

setOptions($options)

Sets the options for rrd graph export

Parameters

$options