Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the 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
Showing results 1 to 15 of 15
Search took 0.01 seconds.
Search: Posts Made By: AaronSaray
Forum: BOOK: Professional PHP Design Patterns July 15th, 2013, 01:37 PM
Replies: 1
Views: 1,167
Posted By AaronSaray
Hi and thanks for your message. Generally,...

Hi and thanks for your message.

Generally, when creating a more indepth product, I do the following approaches:

a) add an ACL with various permissions like read/create/update/delete on each...
Forum: BOOK: Professional PHP Design Patterns June 22nd, 2013, 08:18 PM
Replies: 2
Views: 6,173
Posted By AaronSaray
Hi - you are almost right! Think about it...

Hi - you are almost right!

Think about it this way: the factory pattern refers to a method in which the proper instance comes out. The builder is building a class, with potentially unrelated...
Forum: BOOK: Professional PHP Design Patterns February 4th, 2013, 12:58 PM
Replies: 2
Views: 1,412
Posted By AaronSaray
Hey - great idea. Looking back, I would...

Hey - great idea.

Looking back, I would have made a few more examples a bit differently. :) Glad to see you understand the decorator pattern! Keep it up!
Forum: BOOK: Professional PHP Design Patterns July 1st, 2011, 09:06 AM
Replies: 1
Views: 2,204
Posted By AaronSaray
Hello, Unfortunately, I do not know if that...

Hello,

Unfortunately, I do not know if that is available. In order to generate the CSV files, however, they're pretty simple. Either get a copy of the source program and export an address book -...
Forum: BOOK: Professional PHP Design Patterns February 2nd, 2011, 06:43 PM
Replies: 1
Views: 1,975
Posted By AaronSaray
Probably using isset() is the best solution. You...

Probably using isset() is the best solution. You could also make some sort of dynamic object with magic methods to return blank when queried, but that's way overkill. Good catch!
Forum: BOOK: Professional PHP Design Patterns January 24th, 2011, 08:52 PM
Replies: 1
Views: 1,497
Posted By AaronSaray
You made a great catch - it should be...

You made a great catch - it should be $this->params. And it should be the line of call_user_func_array.
Forum: BOOK: Professional PHP Design Patterns January 5th, 2011, 11:24 PM
Replies: 5
Views: 1,925
Posted By AaronSaray
Hi - try this code: public function...

Hi - try this code:


public function current() {
return current($this->__CDs);
}



Let me know if that works for you. If it does, it may be a bug in the example code. Thanks!
Forum: BOOK: Professional PHP Design Patterns January 5th, 2011, 10:29 PM
Replies: 5
Views: 1,925
Posted By AaronSaray
Hey - if you can post the rest of your class,...

Hey - if you can post the rest of your class, that might be helpful. I'm quite interested to know how you implemented the methods that the iterator interface requires. That may hold a bit of clue....
Forum: BOOK: Professional PHP Design Patterns October 8th, 2010, 09:06 PM
Replies: 2
Views: 1,692
Posted By AaronSaray
Hello - you are right! That has been added to...

Hello - you are right! That has been added to the addendum and corrections for the book. Way to be on top of it :)
Forum: BOOK: Professional PHP Design Patterns July 3rd, 2010, 04:10 PM
Replies: 1
Views: 1,223
Posted By AaronSaray
Hello! You are correct - there was at typo. ...

Hello! You are correct - there was at typo. There are errata for this book. Check out this thread: http://p2p.wrox.com/book-professional-php-design-patterns/79248-nice-book.html

Thanks!
Forum: BOOK: Professional PHP Design Patterns May 3rd, 2010, 12:29 AM
Replies: 3
Views: 11,025
Posted By AaronSaray
Hi, The individual chapter code examples are...

Hi,

The individual chapter code examples are not available for download unfortunately. I didn't think to include them in the content of the download for the book. Drat! I tried to keep them as...
Forum: BOOK: Professional PHP Design Patterns May 3rd, 2010, 12:27 AM
Replies: 1
Views: 1,251
Posted By AaronSaray
Hi - thanks for the praise! Glad you found it...

Hi - thanks for the praise! Glad you found it for a good deal :)

I believe that is a typo. Good find.

You can submit errata by following this link: ...
Forum: BOOK: Professional PHP Design Patterns April 17th, 2010, 10:05 PM
Replies: 2
Views: 1,458
Posted By AaronSaray
I would suggest looking at the Zend Framework...

I would suggest looking at the Zend Framework examples - they use table dependencies. :)
Forum: BOOK: Professional PHP Design Patterns February 8th, 2010, 05:18 PM
Replies: 2
Views: 4,200
Posted By AaronSaray
Hi, Thanks for the question! The...

Hi,

Thanks for the question!

The question is a good one. It took me a little bit to understand the difference between these two patterns (as well as similar building patterns like factory).
...
Forum: BOOK: Professional PHP Design Patterns January 10th, 2010, 01:59 PM
Replies: 1
Views: 1,233
Posted By AaronSaray
Hey - great catch. The example should be the...

Hey - great catch. The example should be the following code:


class productBuilder
{
protected $_product = NULL;
protected $_configs = array();

public function...
Showing results 1 to 15 of 15

 


All times are GMT -4. The time now is 12:10 PM.


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