PHP Classes
elePHPant
Icontem

File: simpleiterator.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of J.B.  >  Simple Object  >  simpleiterator.php  >  Download  
File: simpleiterator.php
Role: Auxiliary script
Content type: text/plain
Description: (interface) class SimpleIterator which extends SimpleObject. It declares methods that all Iterators should have to be compatible with each other and classes using SimpleIterator e.g. class ListTemplate
Class: Simple Object
Base class with common variable access functions
Author: By
Last change:
Date: 11 years ago
Size: 512 bytes
 

Contents

Class file image Download
<?php
   
class SimpleIterator extends SimpleObject {
       
        function
SimpleIterator($strict=FALSE) {
           
parent::SimpleObject($strict);
        }
       
        function
next() {
           
$err = 'Use of abstract SimpleIterator::next()';
           
trigger_error($err,E_USER_ERROR);
        }
       
        function
reset() {
           
$err = 'Use of abstract SimpleIterator::reset()';
           
trigger_error($err,E_USER_ERROR);
        }
       
        function
size() {
           
$err = 'Use of abstract SimpleIterator::size()';
           
trigger_error($err,E_USER_ERROR);
        }
    }
?>