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

Class: ConfigStrategy_Interface

Source Location: /ConfigStrategy_Interface.php

Interface Overview


Interface for ConfigStrategy Objects


Author(s):

Methods



Class Details

[line 211]
Interface for ConfigStrategy Objects

ConfigStrategy objects is an effort to make phpchartPlus able to parse configuration data from multiple sources in a flexible way, that allows expansion with the inclusion of new types of configuration sources in a totally transparent way to the application. To achieve this the concept that varies (the different ways of collecting configuration 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 configuration source must implement the ConfigStrategy_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 235]

void finalize( )

Finalizes the ConfigStrategy object



Tags:

access:  public


[ Top ]

method initialize [line 219]

void initialize( [mixed $params = NULL])

Initializes the ConfigStrategy object



Tags:

access:  public


Parameters:

mixed   $params   Passes an arbitrary numbers of parameters in the ConfigStrategy Object

[ Top ]

method readData [line 228]

ConfigData readData( [mixed $params = NULL])

Reads and returns the configuration data to the client



Tags:

return:  Class defining a common communication structure between ConfigStrategy objects and ConfigParser
access:  public


Parameters:

mixed   $params   Passes an arbitrary numbers of parameters in the ConfigStrategy Object

[ Top ]


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