[ class tree: phpchartPlus ] [ index: phpchartPlus ] [ all elements ]

Class: DataParser

Source Location: /DataParser.php

Class Overview


Class for importing chart data to the application


Author(s):

Variables

Methods



Class Details

[line 37]
Class for importing chart data to the application

This class can be strategized with the appropriate Strategy Object to support the collection and parsing of data in a way independent of the data source implementation details. This feature allows the run-time selection of the data source based on some used-defined parameters.




Tags:

license:  GNU Public License
author:  Tsiavos Chris <jaames@freemail.gr>
final:  


[ Top ]


Class Variables

$Parser_Results = array()

[line 51]

array of Group[] objects containing the parsed chart data returned by the selected Strategy Object



Tags:

access:  private

Type:   Group[]


[ Top ]

$Parser_Strategy =

[line 44]

reference to the selected DataStrategy instance



Tags:

access:  private

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 56]

DataParser __construct( )

Constructor



[ Top ]

destructor __destruct [line 156]

void __destruct( )

Destructor.Calls the finalize method of the selected Strategy Object for clean-up



[ Top ]

method get_GroupItemsName [line 103]

string get_GroupItemsName( )

Returns the name of all group members



Tags:

access:  public


[ Top ]

method get_GroupItemsNum [line 94]

integer get_GroupItemsNum( )

Returns the number of group members



Tags:

access:  public


[ Top ]

method get_GroupsName [line 80]

string[] get_GroupsName( )

Returns the names of all data groups



Tags:

access:  public


[ Top ]

method get_GroupsNum [line 136]

integer get_GroupsNum( )

Returns the number of data groups



Tags:

access:  public


[ Top ]

method get_ItemFromGroups [line 118]

integer[] get_ItemFromGroups( string $item)

Returns the values of the specified member from all groups



Tags:

access:  public


Parameters:

string   $item  

[ Top ]

method parse [line 67]

void parse( [mixed $params = NULL])

Instructs the selected Strategy Object to collect and return the chart data

to DataParser for analysis




Tags:

access:  public
throws:  DataParser_Exception


Parameters:

mixed   $params   Specifies an arbitrary number of parameters passed to the selected Strategy Object during data parsing

[ Top ]

method strategize [line 147]

void strategize( mixed &$Strategy_Object, [mixed $params = NULL])

Strategizes the DataParser with the specified DataStrategy Object



Tags:

access:  public


Parameters:

mixed   $Strategy_Object  
mixed   $params   Passes an arbitrary number of parameters to the Strategy object

[ Top ]


Documentation generated on Sun, 3 Oct 2004 14:59:12 +0300 by phpDocumentor 1.3.0RC3