PHP 클래스 PMA\libraries\gis\GISVisualization

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 메소드들

메소드 설명
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 ) : GISVisualization Factory
getByData ( array $data, array $options ) : GISVisualization 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

보호된 메소드들

메소드 설명
init ( ) : void All the variable initialization, options handling has to be done here.

비공개 메소드들

메소드 설명
__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.

메소드 상세

asOl() 공개 메소드

Get the code for visualization with OpenLayers.
public asOl ( ) : string
리턴 string the code for visualization with OpenLayers

asPng() 공개 메소드

Get the visualization as a PNG.
public asPng ( ) : string
리턴 string the visualization as a PNG

asSVG() 공개 메소드

Get the visualization as a SVG.
public asSVG ( ) : string
리턴 string the visualization as a SVG

get() 공개 정적인 메소드

Factory
public static get ( string $sql_query, array $options, integer $row, integer $pos ) : GISVisualization
$sql_query string SQL to fetch raw data for visualization
$options array Users specified options
$row integer number of rows
$pos integer start position
리턴 GISVisualization

getByData() 공개 정적인 메소드

Get visualization
public static getByData ( array $data, array $options ) : GISVisualization
$data array Raw data, if set, parameters other than $options will be ignored
$options array Users specified options
리턴 GISVisualization

getSettings() 공개 메소드

Returns the settings array
public getSettings ( ) : array
리턴 array the settings array

hasSrid() 공개 메소드

Check if data has SRID
public hasSrid ( ) : boolean
리턴 boolean

init() 보호된 메소드

All the variable initialization, options handling has to be done here.
protected init ( ) : void
리턴 void

setUserSpecifiedSettings() 공개 메소드

Set user specified settings
public setUserSpecifiedSettings ( array $userSpecifiedSettings ) : void
$userSpecifiedSettings array User specified settings
리턴 void

toFile() 공개 메소드

Convert file to given format
public toFile ( string $filename, string $format ) : void
$filename string Filename
$format string Output format
리턴 void

toFileAsPdf() 공개 메소드

Saves as a PDF to a file.
public toFileAsPdf ( string $file_name ) : void
$file_name string File name
리턴 void

toFileAsPng() 공개 메소드

Saves as a PNG image to a file.
public toFileAsPng ( string $file_name ) : void
$file_name string File name
리턴 void

toFileAsSvg() 공개 메소드

Saves as a SVG image to a file.
public toFileAsSvg ( string $file_name ) : void
$file_name string File name
리턴 void

toImage() 공개 메소드

Convert file to image
public toImage ( string $format ) : string
$format string Output format
리턴 string File