phpDocumentor openbiz.bin.service
[ class tree: openbiz.bin.service ] [ index: openbiz.bin.service ] [ all elements ]

Class: chartService

Source Location: /service/chartService.php

Class chartService

Class Overview

chartService class is the plug-in service of printing bizform to chart

Located in /service/chartService.php [line 29]



		
				Author(s):
		
  • Rocky Swen
API Tags:
Access:  public

Information Tags:
Copyright:  Copyright (c) 2005-2009, Rocky Swen

Properties

Methods

[ Top ]
Property Summary
array   $m_PlotList   List of plot objects used in drawing group plot and accurated plot

[ Top ]
Method Summary
void   __construct()   Initialize chartService with xml array metadata
array   &GetPlotData()   Get plot data array
void   PieGraphRender()   draw the Pie type graph (can have 1 pie plot)
void   render()  
object refernce   RenderPiePlot()   chartService::RenderPiePlot() - draw the Pie type plot
object refernce   RenderXYPlot()   Draw the XY type plot
void   XYGraphRender()   Draw the XY type graph (can have > 1 plots)

[ Top ]
Properties
array   $m_PlotList [line 36]

List of plot objects used in drawing group plot and accurated plot

API Tags:
Access:  public


[ Top ]
Methods
Constructor __construct  [line 44]

  void __construct( array &$xmlArr  )

Initialize chartService with xml array metadata

Parameters:
array   $xmlArr: 


[ Top ]
GetPlotData  [line 100]

  array &GetPlotData( BizObj &$bizObj, array $fields, array $labelField  )

Get plot data array

Parameters:
BizObj   $bizObj:  object reference of bizobj
array   $fields:  list of bizobj fields
array   $labelField:  label field of bizobj

API Tags:
Return:  reference of the array [field][index]
Access:  public


[ Top ]
PieGraphRender  [line 194]

  void PieGraphRender( BizObj &$bizObj, array &$xmlArr  )

draw the Pie type graph (can have 1 pie plot)

Parameters:
BizObj   $bizObj:  object reference of bizobj
array   $xmlArr:  xml array reference

API Tags:
Access:  public


[ Top ]
render  [line 55]

  void render( mixed $objName  )


API Tags:
Access:  public


[ Top ]
RenderPiePlot  [line 299]

  object refernce RenderPiePlot( array &$data, array &$xmlArr  )

chartService::RenderPiePlot() - draw the Pie type plot

Parameters:
array   $data:  plot data array reference
array   $xmlArr:  xml array reference

API Tags:
Return:  Pie plot object reference
Access:  public


[ Top ]
RenderXYPlot  [line 232]

  object refernce RenderXYPlot( array &$data, array &$xmlArr  )

Draw the XY type plot

Parameters:
array   $data:  plot data array reference
array   $xmlArr:  xml array reference

API Tags:
Return:  XY plot object reference
Access:  public


[ Top ]
XYGraphRender  [line 126]

  void XYGraphRender( BizObj &$bizObj, array &$xmlArr  )

Draw the XY type graph (can have > 1 plots)

Parameters:
BizObj   $bizObj:  object reference of bizobj
array   $xmlArr:  xml array reference

API Tags:
Access:  public


[ Top ]

Documentation generated on Tue, 22 Dec 2009 03:02:40 -0800 by phpDocumentor 1.3.0RC3