Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional PHP Design Patterns
Password Reminder
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 Search this Thread Display Modes
  #1 (permalink)  
Old April 16th, 2010, 12:13 PM
Registered User
 
Join Date: Apr 2010
Location: St. Louis, MO
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default Data Access Object - implementing table joins?

I'm using the DAO pattern from the book, with some increased functionality (like allowing the fetch to accept multiple columns for the select, or a composite primary key, allowing the fetch to accept a parameter for the operator, allowing "where param1 = arg1", "where param1 < arg1", etc, and adding an insert method)

I think it would make sense to fetch from a joining of tables, but I'm at a loss as to how to implement this in a properly abstract manner, which class to implement it in, etc. I have the baseDAO class, and a class corresponding to each table in my database that extends baseDAO, in much the same way as the book shows in the code example, with the additional functionality described above.

Has anyone done this?
Reply With Quote
  #2 (permalink)  
Old April 17th, 2010, 10:05 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

I would suggest looking at the Zend Framework examples - they use table dependencies. :)
__________________
-aaron
--
aaronsaray.com || <-- yeah... try it.
Reply With Quote
The Following User Says Thank You to AaronSaray For This Useful Post:
jenn.bohm (April 28th, 2010)
  #3 (permalink)  
Old April 26th, 2010, 10:46 PM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default I'm sorry

could anyone tell me how to download this book
Professional PHP Design Patterns ?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
saving data from another table in access devilz Beginning VB 6 4 February 15th, 2009 06:29 AM
optimizing MySQL table joins - script running slow crmpicco MySQL 7 January 31st, 2006 10:54 AM
Importing text data to an access table sbyers_1982 VBScript 4 November 29th, 2004 01:57 PM
SQL Table Joins Dredd Classic ASP Databases 2 June 3rd, 2003 06:24 PM



All times are GMT -4. The time now is 10:23 AM.


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