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 2
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 14
    2005-06-01

    Table of Contents:
  • Object Interaction in PHP: Introduction to Aggregation, part 2
  • Fetching data with class: the “MySQLConnector” class
  • Adding Some Functionality to the Class
  • Improving the “MySQLConnector class: adding row-counting methods
  • Implementing the “MySQLConnector” class: 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 2


    (Page 1 of 5 )

    In this second part of his series, Alejandro Gervasio gets a little more technical with the basics of Aggregation. He begins working with a MySQL abstraction class and a useful paging class, and is starting to get into writing portable code and introducing the technique of aggregation.

    This is the second part of the series “Object Interaction in PHP: Introduction to Aggregation”. Welcome back. In the first part of this series, we’ve taken a look at one of the most powerful processes involved within object interaction in PHP: Aggregation.

    While seasoned developers use classes on a daily basis for development tasks, which implies directly establishing a careful planned interaction between objects, there are a wide range of programmers that maybe are just starting out to learn about the pros and cons of the object-oriented paradigm.  With this concept in mind, by developing a pair of simple classes, we’ve hopefully demonstrated that implementing aggregation in PHP is not as difficult as it seems.

    Stepping back and refreshing the concepts covered in the first part, we’ve put on test our abilities as developers, creating a couple of functional classes, that is, “arrayProcessor” and “dataMailer”, making them interact each other, in order to get around quickly in the terrain of aggregation.

    Certainly, this is not a condition where you can leap straight away, expecting to know it all in no time, as you probably will agree. As all things in Life, object-oriented programming takes time, but it’s really a very exciting experience. But, what has this to do with aggregation? Everything! I know that you’re getting anxious to learn more about the topic, so let’s get on finding out how we can apply this powerful technique in websites.

    In this second part, we’ll get a bit more demanding about ourselves, because we’re going to implement aggregation building two of the most frequently used classes: a MySQL abstraction class and a useful paging class, in order to provide some foundations for writing portable code and introduce our desired aggregation technique. Are you ready to launch forth into the exciting world of object interaction? Let’s get started!

    More PHP Articles
    More By Alejandro Gervasio


       · The second part of the series exposes the first class involved in PHP object...
       · yeah, the article definately needed some more proof reading before being published....
       · The only typo was the one I mentioned previously. The rest of the article is...
       · Should be fixed now.
       · Many thanks for the correction, Terri.Best Regards.
     

       

    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