Adam Gotterer's Blog: Building an Object Collection Manager with...

Courtesy PHPDeveloper.org  Mon, 11/02/2009 - 09:17

Adam Gotterer has written up a tutorial with his process behind creating an object collection manager with PHP's built-in SPL functionality.

The purpose of a collection is to store objects in an organized manner with specific access rules.

We are going to build a collection class using the Standard PHP Library (SPL). Our final product will be capable of iterating, counting and access to objects via array.

If you are not familiar with SPL you can find...


 

More related items

Jeremy Cook's Blog: Using the Countable Interface
In a recent post to his blog Jeremy Cook has a tutorial about using the Countable interface (part of the SPL) in your objects to make them play nicely with functions like count. PHP...

Using Iterators in PHP
DevX: "This article shows you how to use the most important iterator classes: ArrayIterator, DirectoryIterator, FilterIterator, and so forth, found in the Standard PHP Library (SPL), and how...

Rafael Dohms' Blog: Iterating over life with SPL...
Rafael Dohms has posted the first part of a series he's writing looking at the Iterators that come with the Standard PHP Library (SPL). In this first article he focuses on Directory...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com