Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
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?

thanks
Reply With Quote
  #2 (permalink)  
Old July 3rd, 2010, 04:10 PM
Wrox Author
Points: 118, Level: 2
Points: 118, Level: 2 Points: 118, Level: 2 Points: 118, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2009
Location: Milwaukee, WI
Posts: 15
Thanks: 0
Thanked 4 Times in 4 Posts
Default

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

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 09:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.