\Horde_Pear_Package_Contents_Include_Patterns

Horde_Pear_Package_Contents_Include implementation that includes files based on a pattern list.

Summary

Methods
Properties
Constants
__construct()
isIncluded()
No public properties found
No constants found
No protected methods found
$_matcher
$_root
N/A
No private methods found
No private properties found
N/A

Properties

$_root

$_root : string

The root position of the repository.

Type

string

Methods

__construct()

__construct(array  $patterns, string  $root) 

Constructor.

Parameters

array $patterns

The include patterns.

string $root

The root position for the files that should be checked.

isIncluded()

isIncluded(\SplFileInfo  $element) : boolean

Tell whether to include the element.

Parameters

\SplFileInfo $element

The element to check.

Returns

boolean —

True if the element should be included, false otherwise.