PHP
  Home arrow PHP arrow Object Interaction in PHP: Introductio...
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Object Interaction in PHP: Introduction to Aggregation, part 4
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 23
    2005-06-15

    Table of Contents:
  • Object Interaction in PHP: Introduction to Aggregation, part 4
  • Assembling classes: a brief look at the “MySQLConnector” class
  • Assembling classes (continued): the “Pager” class at glance
  • Putting the classes to work: a practical example

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Object Interaction in PHP: Introduction to Aggregation, part 4


    (Page 1 of 4 )

    In the fourth and final article in our series covering aggregation in PHP, Alejandro Gervasio reviews the MySQLConnector and Pager classes. He then uses these classes first to build a simple database, then to display some paged results from the database.

    Welcome to the final part of the series “Object Interaction in PHP: Introduction to Aggregation.” Certainly, we've had some hard work, but it's been worth the gain. Implementing aggregation in PHP is one of the most powerful techniques currently available to reveal the strengths of object-oriented programming in production environments.

    In the previous articles, I’ve introduced in a step-by-step process, and the concept of aggregation in an object-interactive PHP scenario, as well as its multiple possibilities for application in Web projects. The examples shown as I've guided you through the learning process have been numerous, ranging from simple, rather primitive interaction between basic classes, to more mature linkage of applications such as MySQL database abstraction and paging classes.

    Particularly, jumping back into the flow of the examples given in the second and third parts respectively, where we’ve been strongly advised to develop the “MySQLConnector” abstraction class and the “Pager” paging class, we’re going to build a concrete example. This example will demonstrate how these two classes can be put together to work in existing or future applications.

    Before we dive deeper into the example, a brief clarification is in order. The sample classes are designed to show clearly the interaction between objects, something that I personally recommend to novice-intermediate developers. Once you understand the core concepts and the theory, you can do more work with the wealth of open source projects widely available on the Web.

    Having said that, let’s implement aggregation in our example. It’s going to be fun!

    More PHP Articles
    More By Alejandro Gervasio


       · The final part of this series goes trough the practical approach. It demonstrates...
       · What would be a good way to add a page formatting method or page formatting...
       · Thank you for the kind words about my article. If you want to improve the look and...
     

       

    PHP ARTICLES

    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security
    - Building a Content Management System with Co...
    - Filters and Login Systems for Web Applicatio...
    - Working with the Email Class in Code Igniter





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT