Horde_Pear_Package_Contents_Ignore_Patterns
in package
implements
Horde_Pear_Package_Contents_Ignore
Horde_Pear_Package_Contents_Ignore implementation that ignores files based on a pattern list.
Tags
Interfaces, Classes and Traits
- Horde_Pear_Package_Contents_Ignore
- Horde_Pear_Package_Contents_Ignore:: defines "ignore" filters to be used when generating package.xml filelists.
Table of Contents
- $_matcher : Horde_Pear_Package_Contents_PatternsMatcher
- Helper object to match against patterns.
- $_root : string
- The root position of the repository.
- __construct() : mixed
- Constructor.
- isIgnored() : bool
- Tell whether to ignore the element.
Properties
$_matcher
Helper object to match against patterns.
protected
Horde_Pear_Package_Contents_PatternsMatcher
$_matcher
$_root
The root position of the repository.
protected
string
$_root
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $patterns, string $root) : mixed
Parameters
- $patterns : array<string|int, mixed>
-
The ignore patterns.
- $root : string
-
The root position for the files that should be checked.
Return values
mixed —isIgnored()
Tell whether to ignore the element.
public
isIgnored(SplFileInfo $element) : bool
Parameters
- $element : SplFileInfo
-
The element to check.
Return values
bool —True if the element should be ignored, false otherwise.