[ Index ]

PHP Cross Reference of phpBB-3.1.10-deutsch

title

Body

[close]

/phpbb/ -> recursive_dot_prefix_filter_iterator.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  namespace phpbb;
  15  
  16  /**
  17  * Class recursive_dot_prefix_filter_iterator
  18  *
  19  * This filter ignores directories starting with a dot.
  20  * When searching for php classes and template files of extensions
  21  * we don't need to look inside these directories.
  22  */
  23  class recursive_dot_prefix_filter_iterator extends \RecursiveFilterIterator
  24  {
  25  	public function accept()
  26      {
  27          $filename = $this->current()->getFilename();
  28          return $filename[0] !== '.' || !$this->current()->isDir();
  29      }
  30  }


Generated: Sun Feb 19 19:52:41 2017 Cross-referenced by PHPXref 0.7.1