Back to index

php5  5.3.10
directoryfilterdots.inc
Go to the documentation of this file.
00001 <?php
00002 
00020 class DirectoryFilterDots extends RecursiveFilterIterator
00021 {
00025        function __construct($path)
00026        {
00027               parent::__construct(new RecursiveDirectoryIterator($path));
00028        }
00029 
00032        function accept()
00033        {
00034               return !$this->getInnerIterator()->isDot();
00035        }
00036 
00039        function key()
00040        {
00041               return $this->getInnerIterator()->getPathname();
00042        }
00043 }
00044 
00045 ?>