Exploring PHP frameworks of classes
A major reason for committing to PHP5 is to take advantage of the improved possibilities for object orientation. One significant part of OO is the creation of frameworks of classes. In the next section, we shall be building the main elements of the session handling classes, which form a simple framework.
What is a framework of classes? Design has to be done at different levels. Sometimes we look at the whole picture, and sometimes we struggle with the detailed mechanism of a single method. In between, the aim of OO is to break down the problem into objects that act as a model. They represent important features of the problem. But we often find that some of the objects that are used to build the model have very close ties.
The idea of a framework is quite a loose one. There will sometimes be formal connections between the classes that make up a framework, such as one being a subclass of another. Other times, there will be no formal relationship, but the...