Wrox Programmer Forums
BOOK: Professional PHP Design Patterns
This is the forum to discuss the Wrox book Professional PHP Design Patterns by Aaron Saray ISBN: 978-0-470-49670-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP Design Patterns section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 3rd, 2010, 06:36 AM
Registered User
Join Date: Jul 2010
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Default Strategy Pattern

hi every body, at the first i'm sorry about my poor language
i have 1 Question about example in page 114.
in 2 last line of this example, we have:

$cd->setStrategyContet(new CDAsJSONStrategy());
print $cd->get($cd);

my problem is: the "get" method of $cd cant give any parameter but we sent $cd, why?

Old July 3rd, 2010, 04:10 PM
Wrox Author
Join Date: Sep 2009
Posts: 15
Thanks: 0
Thanked 4 Times in 4 Posts

Hello! You are correct - there was at typo. There are errata for this book. Check out this thread: Nice book

aaronsaray.com || <-- yeah... try it.
The Following User Says Thank You to AaronSaray For This Useful Post:
g2eenday (July 3rd, 2010)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences between Delegate AND Strategy Pattern Luka77 BOOK: Professional PHP Design Patterns 2 April 28th, 2010 05:40 PM
ASP - Design Strategy snufse ASP.NET 2.0 Basics 1 March 27th, 2008 02:17 PM
Design Strategy zoltac007 ASP.NET 1.x and 2.0 Application Design 2 October 3rd, 2006 11:56 AM
DirectoryInfo.GetFiles(pattern): search pattern fo arif_1947 VS.NET 2002/2003 1 October 19th, 2004 11:59 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.