Location: PHPKode > scripts > SPL and Iterators > spl-and-iterators/modules/modules.readme.txt
MODULE MANAGEMENT EXAMPLE USING PHP5 ITERATORS

This file exemple2.php shows an exemple of modules management using the SPL (Standard PHP Library).

oCore is the main module management class. It is an abstract class and cannot be instanciated firectly.
oSystem is the main system class; it allows to walk through the module collection collected by oCore.

For a simple example, instead of real modules, I used Users. A user being defined by some properties like EMAIL, NAME and so on.

oCore ca, collect valid users, and oSystem allows to walk through users and/or their properties (which can be seen as sub modules) easily,
via Iterators.

I think the examples are pretty easy to understand.

Just launch exemple2.php to see it acting.
Return current item: SPL and Iterators