SPL-StandardPHPLibrary
directoryfilterdots.inc
Go to the documentation of this file.
1 <?php
2 
21 {
25  function __construct($path)
26  {
27  parent::__construct(new RecursiveDirectoryIterator($path));
28  }
29 
32  function accept()
33  {
34  return !$this->getInnerIterator()->isDot();
35  }
36 
39  function key()
40  {
41  return $this->getInnerIterator()->getPathname();
42  }
43 }
44 
45 ?>
__construct($path)
Construct from a path.
A filtered DirectoryIterator.
Iterator to filter recursive iterators.
recursive directory iterator
Definition: spl.php:1034