PHP in Action - Chapter 7, Design Patterns. Part - III
You know you’ve been waiting for it, here it is. The final installment of Chapter 7 of PHP in Action by Dagfinn Reiersol. Without further comment, here’s the introduction to this section in Dagfinn’s own words.
Part 3 Introduction
PHP in Action – Dagfinn Reiersol
In this section we discuss an Iterator and a Composite.
An Iterator is a “canned loop.” It encapsulates the process of taking elements one by one from a data structure or other source, making the process appear similar regardless of the source.
A Composite is the pattern for representing tree structures such as hierarchical menus. It makes the nodes of the tree appear as similar as possible, making it easy and flexible to make changes to the tree.
Now, the link.
In case you missed them, here are the links to Part I and Part II.
=C=

Comments
The requested URL /content/pdfs/PHPinAction_part3of3.pdf was not found on this server.
Apologies to all. I mis-named the PDF of the server. It’s fixed now.
=C=