summaryrefslogtreecommitdiff
path: root/ext/spl/examples
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-11-01 00:33:41 +0000
committerMarcus Boerger <helly@php.net>2004-11-01 00:33:41 +0000
commit846666109bcceb9b19f02c3b9d915d811c7f4e36 (patch)
treea03c6cb8d54ec12019a3ab611107e5b8e968dbc4 /ext/spl/examples
parentb9470609ad6ccb27ec38c8dd1fdbe121a41f33b5 (diff)
downloadphp-git-846666109bcceb9b19f02c3b9d915d811c7f4e36.tar.gz
- Update
Diffstat (limited to 'ext/spl/examples')
-rwxr-xr-xext/spl/examples/directoryfilterdots.inc18
1 files changed, 2 insertions, 16 deletions
diff --git a/ext/spl/examples/directoryfilterdots.inc b/ext/spl/examples/directoryfilterdots.inc
index abad283234..fe03a81411 100755
--- a/ext/spl/examples/directoryfilterdots.inc
+++ b/ext/spl/examples/directoryfilterdots.inc
@@ -12,12 +12,12 @@
/** @ingroup Examples
* @brief A filtered DirectoryIterator
* @author Marcus Boerger
- * @version 1.0
+ * @version 1.1
*
* This Iteraotr takes a pathname from which it creates a DirectoryIterator
* and makes it recursive. Further more it filters the entries '.' and '..'.
*/
-class DirectoryFilterDots extends FilterIterator implements RecursiveIterator
+class DirectoryFilterDots extends RecursiveFilterIterator
{
/** Construct from a path.
* @param $path directory to iterate
@@ -33,21 +33,7 @@ class DirectoryFilterDots extends FilterIterator implements RecursiveIterator
{
return !$this->getInnerIterator()->isDot();
}
-
- /** @return whether the current entry is a directory
- */
- function hasChildren()
- {
- return $this->getInnerIterator()->hasChildren();
- }
- /** @return the current subdirectory as a new DirectoryFilterDots instance.
- */
- function getChildren()
- {
- return new DirectoryFilterDots($this->getInnerIterator()->getPathname());
- }
-
/** @return the current entries path name
*/
function key()