PHPBuilder - PHP Iterator Page 6



RSS Twitter
Articles Application Architecture

PHP Iterator - Page 6

by: Dejan Bosanac
|
February 25, 2003

So, here are instructions for creating our new type of iterators. First, make your constructor (which has to have an array as a parameter) which calls _initialize() function from Iterator class. Second, override _fetchObject method to do whatever you have to do to make your objects. And, that would be all.

In conclusion

Iterator will not slow down your application in a way that it will need new hardware to run it. It has some overhead, but for that price you get clean and easy readable code that is flexible enough for future software enhancements.
You can download PHP Iterator from here

« Previous Page
1
|
2
|
3
|
4
|
5
|
6

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Dejan Bosanac

Comment:



Comment:

(Maximum characters: 1200). You have characters left.