PHP
  Home arrow PHP arrow Creating AJAX Requester Objects with A...
Dev Shed Forums 
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 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
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

Creating AJAX Requester Objects with Abstract Factory Classes in PHP 5
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2007-01-31

    Table of Contents:
  • Creating AJAX Requester Objects with Abstract Factory Classes in PHP 5
  • Working with AJAX HTTP requester objects
  • Completing the schema imposed by the abstract factory pattern
  • Demonstrating the functionality of the abstract factory pattern

  • 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


    Creating AJAX Requester Objects with Abstract Factory Classes in PHP 5


    (Page 1 of 4 )

    The abstract factory pattern can be useful if you’re developing a PHP application that needs to create diverse objects in multiple contexts. If you’re interested in learning the basics of this design pattern, this set of articles might be what you’re looking for. Welcome to the second installment of the series “Using abstract factory classes in PHP 5.” In a step-by-step guide, this series teaches you how to create abstract factory classes in PHP 5 by providing you with a wealth of educational examples on the topic.

    Just in case the abstract factory pattern doesn't ring any bells for you, let me quickly explain how it works. Basically, when this pattern is applied, there's an abstract factory class which defines what type of objects should be created by the corresponding concrete factories. On the other hand, these factories implement the required logic to make sure that the correct objects are returned to client code, according to the context where they're used.

    Logically, if you're anything like me, the above definition may sound rather complex. Taking this into account, in the first article of the series I explained how to use the abstract factory pattern to create different types of DIV elements, in this way showing a concrete case where this pattern can be examined in detail.

    Now that you hopefully have a stronger background in how this useful pattern works in PHP 5, I'm going to continue showing you more situations where abstract factory classes can be used properly. More specifically, in this second article of the series, I'm going to demonstrate how to apply the abstract factory pattern to create diverse AJAX HTTP requester objects, which can be used in distinct contexts.

    I'm pretty certain that once you read this tutorial, you'll have a more accurate idea of how to apply this handy pattern in your own PHP applications.

    Having already defined the subject of this article, let's find out together how to use an abstract factory class to create AJAX HTTP requester objects. Let's begin now!

    More PHP Articles
    More By Alejandro Gervasio


       · In this second article of the series, the abstract factory pattern is applied to...
     

       

    PHP ARTICLES

    - Paginating Database Records with the Code Ig...
    - HTTP Headers in Web Development
    - Project Management: Administration
    - Building a Database-Driven Application with ...
    - User Authentication for a Project Management...
    - Introduction to the CodeIgniter PHP Framework
    - Adding Users for a Project Management Applic...
    - Migrating Class Code for a MIME Email to PHP...
    - Login and Logout Authentication for a Projec...
    - Composing Messages in HTML for MIME Email wi...
    - Project Management: Authentication
    - A Better Way to Determine MIME Types for MIM...
    - Project Management Overview
    - Handling Attachments in MIME Email with PHP
    - Completing the Project Management Application





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway