2003-11-18 22:18:38 +00:00
|
|
|
<?php
|
|
|
|
|
2004-10-29 20:58:58 +00:00
|
|
|
/** @file recursiveiterator.inc
|
2004-10-31 19:05:37 +00:00
|
|
|
* @ingroup SPL
|
2004-10-29 20:58:58 +00:00
|
|
|
* @brief class RecursiveIterator
|
|
|
|
* @author Marcus Boerger
|
|
|
|
* @date 2003 - 2004
|
|
|
|
*
|
|
|
|
* SPL - Standard PHP Library
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Interface for recursive iteration with RecursiveIteratorIterator
|
|
|
|
* @author Marcus Boerger
|
|
|
|
* @version 1.0
|
|
|
|
*/
|
2003-11-18 22:18:38 +00:00
|
|
|
interface RecursiveIterator implements Iterator
|
|
|
|
{
|
2004-10-29 20:58:58 +00:00
|
|
|
/** @return whether the current element has children
|
|
|
|
*/
|
2003-11-18 22:18:38 +00:00
|
|
|
function hasChildren();
|
2004-10-29 20:58:58 +00:00
|
|
|
|
|
|
|
/** @return the sub iterator for the current element
|
2004-11-01 18:11:39 +00:00
|
|
|
* @note The returned object must implement RecursiveIterator.
|
2004-10-29 20:58:58 +00:00
|
|
|
*/
|
2003-11-18 22:18:38 +00:00
|
|
|
function getChildren();
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|