get('system.pages.ignore_folders'); } $this::$ignore_folders = $ignore_folders; } /** * Check whether the current element of the iterator is acceptable * * @return bool true if the current element is acceptable, otherwise false. */ public function accept() { /** @var SplFileInfo $current */ $current = $this->current(); return $current->isDir() && !in_array($current->getFilename(), $this::$ignore_folders, true); } }