Horde_Pear_Package_Contents_Include_Patterns
in package
implements
Horde_Pear_Package_Contents_Include
Horde_Pear_Package_Contents_Include implementation that includes files based on a pattern list.
Tags
Interfaces, Classes and Traits
- Horde_Pear_Package_Contents_Include
- Horde_Pear_Package_Contents_Include:: defines "include" 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.
- isIncluded() : bool
- Tell whether to include 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 include patterns.
- $root : string
-
The root position for the files that should be checked.
Return values
mixed —isIncluded()
Tell whether to include the element.
public
isIncluded(SplFileInfo $element) : bool
Parameters
- $element : SplFileInfo
-
The element to check.
Return values
bool —True if the element should be included, false otherwise.