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

Class: DataStrategy_Interface

Source Location: /DataStrategy_Interface.php

Interface Overview


Interface for DataStrategy Objects


Author(s):

Methods



Class Details

[line 76]
Interface for DataStrategy Objects

DataStrategy objects is an effort to make phpchartPlus able to parse chart data from multiple sources in a flexible way, that allows expansion with the inclusion of new types of data sources in a totally transparent way to the application. To achieve this the concept that varies (the different ways of collecting chart data) is being encapsulated into seperate (Strategy) objects. Transparency is achieved through a common interface for all (Strategy) objects which allows the runtime selection of strategy objects based on some user-defined parameters. Users that want to add a new type of data source must implement the DataStrategy_Interface.
For more info read the Strategy Pattern




Tags:

license:  GNU Public License
author:  Tsiavos Chris <jaames@freemail.gr>
link:  http://c2.com/cgi/wiki?StrategyPattern


[ Top ]


Class Methods


method finalize [line 99]

void finalize( )

Finalizes the DataStrategy object.



Tags:

access:  public


[ Top ]

method initialize [line 84]

void initialize( [mixed $params = NULL])

Initializes the DataStrategy Object



Tags:

access:  public


Parameters:

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

[ Top ]

method perform [line 92]

Group[] perform( [mixed $params = NULL])

Performs the required action for parsing the data



Tags:

return:  Common communication structure between DataStrategy objects and DataParser
access:  public


Parameters:

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

[ Top ]


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