Method | Description | |
---|---|---|
asOl ( ) : string | Get the code for visualization with OpenLayers. | |
asPng ( ) : string | Get the visualization as a PNG. | |
asSVG ( ) : string | Get the visualization as a SVG. | |
get ( string $sql_query, array $options, integer $row, integer $pos ) : |
Factory | |
getByData ( array $data, array $options ) : |
Get visualization | |
getSettings ( ) : array | Returns the settings array | |
hasSrid ( ) : boolean | Check if data has SRID | |
setUserSpecifiedSettings ( array $userSpecifiedSettings ) : void | Set user specified settings | |
toFile ( string $filename, string $format ) : void | Convert file to given format | |
toFileAsPdf ( string $file_name ) : void | Saves as a PDF to a file. | |
toFileAsPng ( string $file_name ) : void | Saves as a PNG image to a file. | |
toFileAsSvg ( string $file_name ) : void | Saves as a SVG image to a file. | |
toImage ( string $format ) : string | Convert file to image |
Method | Description | |
---|---|---|
init ( ) : void | All the variable initialization, options handling has to be done here. |
Method | Description | |
---|---|---|
__construct ( string $sql_query, array $options, integer $row, integer $pos, array $data = null ) | Constructor. Stores user specified options. | |
_fetchRawData ( ) : string | Returns raw data for GIS visualization. | |
_handleOptions ( ) : void | A function which handles passed parameters. Useful if desired chart needs to be a little bit different from the default one. | |
_modifySqlQuery ( string $sql_query, integer $rows, integer $pos ) : string | Returns sql for fetching raw data | |
_png ( ) : resource | Generate the visualization in PNG format. | |
_prepareDataSet ( array $data, array $scale_data, string $format, object $results ) : mixed | Prepares and return the dataset as needed by the visualization. | |
_sanitizeName ( string $file_name, string $ext ) : string | Sanitizes the file name. | |
_scaleDataSet ( array $data ) : array | Calculates the scale, horizontal and vertical offset that should be used. | |
_svg ( ) : string | Generate the visualization in SVG format. | |
_toFile ( string $file_name, string $type, string $ext ) : void | Handles common tasks of writing the visualization to file for various formats. |
public getSettings ( ) : array | ||
return | array | the settings array |
public setUserSpecifiedSettings ( array $userSpecifiedSettings ) : void | ||
$userSpecifiedSettings | array | User specified settings |
return | void |
public toFileAsPdf ( string $file_name ) : void | ||
$file_name | string | File name |
return | void |
public toFileAsPng ( string $file_name ) : void | ||
$file_name | string | File name |
return | void |
public toFileAsSvg ( string $file_name ) : void | ||
$file_name | string | File name |
return | void |