Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional PHP Design Patterns
|
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 April 16th, 2010, 12:13 PM
Registered User
 
Join Date: Apr 2010
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?
 
Old April 17th, 2010, 10:05 PM
Wrox Author
 
Join Date: Sep 2009
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.
The Following User Says Thank You to AaronSaray For This Useful Post:
jenn.bohm (April 28th, 2010)
 
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 ?





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





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