PHP in Action – Chapter 7, Design Patterns. Part – III
p. !>http://farm1.static.flickr.com/157/387989320_d9272b7da1_m.jpg!:http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FPHP-Action-Objects-Design-Agility%2Fdp%2F1932394753%2Fsr%3D8-1%2Fqid%3D1171290581%3Fie%3DUTF8%26s%3Dbooks&tag=postcarfrommy-20&linkCode=ur2&camp=1789&creative=9325 You know you’ve been waiting for it, here it is. The final installment of Chapter 7 of “PHP in Action”:http://www.amazon.com/gp/redirect.html?ie=UTF8&location=http%3A%2F%2Fwww.amazon.com%2FPHP-Action-Objects-Design-Agility%2Fdp%2F1932394753%2Fsr%3D8-1%2Fqid%3D1171290581%3Fie%3DUTF8%26s%3Dbooks&tag=postcarfrommy-20&linkCode=ur2&camp=1789&creative=9325 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
p. In this section we discuss an Iterator and a Composite.
p. 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.
p. Now, the “link”:http://devzone.zend.com/content/pdfs/PHPinAction_part3of3.pdf.
In case you missed them, here are the links to “Part I”:http://devzone.zend.com/node/view/id/1684 and “Part II”:http://devzone.zend.com/node/view/id/1734.
=C=
Categories: Uncategorized
Tags: Manning Publishing, Object Oriented Programming, PHP5, Samples


3 comments to “PHP in Action – Chapter 7, Design Patterns. Part – III”
March 5th, 2007 at 3:47 pm
Apparently the link to the pdf is broken:
The requested URL /content/pdfs/PHPinAction_part3of3.pdf was not found on this server.
March 5th, 2007 at 4:39 pm
sadness…
March 5th, 2007 at 4:53 pm
Apologies to all. I mis-named the PDF of the server. It’s fixed now.
=C=