X7ROOT File Manager
Current Path:
/opt/alt/php53/usr/share/pear/Symfony/Component/Finder/Iterator
opt
/
alt
/
php53
/
usr
/
share
/
pear
/
Symfony
/
Component
/
Finder
/
Iterator
/
ðŸ“
..
📄
CustomFilterIterator.php
(1.51 KB)
📄
DateRangeFilterIterator.php
(1.43 KB)
📄
DepthRangeFilterIterator.php
(1.24 KB)
📄
ExcludeDirectoryFilterIterator.php
(1.4 KB)
📄
FilePathsIterator.php
(2.64 KB)
📄
FileTypeFilterIterator.php
(1.35 KB)
📄
FilecontentFilterIterator.php
(1.9 KB)
📄
FilenameFilterIterator.php
(1.68 KB)
📄
FilterIterator.php
(1.41 KB)
📄
MultiplePcreFilterIterator.php
(1.73 KB)
📄
PathFilterIterator.php
(1.91 KB)
📄
RecursiveDirectoryIterator.php
(2.98 KB)
📄
SizeRangeFilterIterator.php
(1.41 KB)
📄
SortableIterator.php
(2.49 KB)
Editing: MultiplePcreFilterIterator.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Finder\Iterator; use Symfony\Component\Finder\Expression\Expression; /** * MultiplePcreFilterIterator filters files using patterns (regexps, globs or strings). * * @author Fabien Potencier <fabien@symfony.com> */ abstract class MultiplePcreFilterIterator extends FilterIterator { protected $matchRegexps = array(); protected $noMatchRegexps = array(); /** * Constructor. * * @param \Iterator $iterator The Iterator to filter * @param array $matchPatterns An array of patterns that need to match * @param array $noMatchPatterns An array of patterns that need to not match */ public function __construct(\Iterator $iterator, array $matchPatterns, array $noMatchPatterns) { foreach ($matchPatterns as $pattern) { $this->matchRegexps[] = $this->toRegex($pattern); } foreach ($noMatchPatterns as $pattern) { $this->noMatchRegexps[] = $this->toRegex($pattern); } parent::__construct($iterator); } /** * Checks whether the string is a regex. * * @param string $str * * @return Boolean Whether the given string is a regex */ protected function isRegex($str) { return Expression::create($str)->isRegex(); } /** * Converts string into regexp. * * @param string $str Pattern * * @return string regexp corresponding to a given string */ abstract protected function toRegex($str); }
Upload File
Create Folder