|
SPL-StandardPHPLibrary
|
00001 <?php 00002 00018 class EmptyIterator implements Iterator 00019 { 00023 function rewind() 00024 { 00025 // nothing to do 00026 } 00027 00030 function valid() 00031 { 00032 return false; 00033 } 00034 00039 function current() 00040 { 00041 throw new Exception('Accessing the value of an EmptyIterator'); 00042 } 00043 00048 function key() 00049 { 00050 throw new Exception('Accessing the key of an EmptyIterator'); 00051 } 00052 00056 function next() 00057 { 00058 // nothing to do 00059 } 00060 } 00061 00062 ?>
1.7.5.1