Documentation:

Back
phpchartPlus Documentation
Tsiavos Chris <[email protected]>
Date: 18-Feb-2005
License: GPL
4.2 Design considerations
OOP & Design patterns in phpchartPlus
phpchartPlus is utilizing the latest OOP features added in PHP 5. Although the same functionality chould be achieved with the object-oriented model of PHP 4, the advanced features offered by PHP 5 make easier to apply advanced object-oriented techniques and have cleaner & more extensible code.
Exceptions as error handling strategy
Exceptions were chosen as the default error handling strategy. Why all that fuss about exceptions? Because although the increased complexity they introduce, there are necessary to fillful different error handling needs. Not everyone has the same error-handling needs. For some, the default "terminate program with an error message" strategy will suffice. But there might be others in critical environments where to terminate (brute-force) the program is unacceptable. For those, implementing raised exceptions according to the peculiar characteristics and needs of their environment results to the adaptation with the overall error handling strategy of the rest of the program.

 
Hosted by www.Geocities.ws

1