PHP Класс Horde_Pear_Package_Contents_Ignore_Patterns, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Gunnar Wrobel ([email protected])
Наследование: implements Horde_Pear_Package_Contents_Ignore
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( array $patterns, string $root ) Constructor.
isIgnored ( SplFileInfo $element ) : boolean Tell whether to ignore the element.

Приватные методы

Метод Описание
_getRegExpableSearchString ( string $s ) : string Converts $s into a string that can be used with preg_match.
_matches ( array $matches, string $path ) : null Does the given path match one of the regular expression patterns?
_prepare ( string $patterns ) : null Prepare the list of ignores from the input.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( array $patterns, string $root )
$patterns array The ignore patterns.
$root string The root position for the files that should be checked.

isIgnored() публичный Метод

Tell whether to ignore the element.
public isIgnored ( SplFileInfo $element ) : boolean
$element SplFileInfo The element to check.
Результат boolean True if the element should be ignored, false otherwise.