Esempio n. 1
0
 private static function find_all_pages_($path, &$pages)
 {
     foreach (new DirectoryIterator($path) as $file) {
         if ($file->isDot()) {
             continue;
         }
         if ($file->isDir()) {
             Resolver::find_all_pages_($file->getPathname(), $pages);
         } elseif (preg_match('@[.](txt|lhs)$@', $file->getFilename())) {
             $pages[] = new TextFilePage('', $file->getPathname(), false);
         }
     }
 }