\Horde_Pear_Package_Contents_Ignore_Patterns

Horde_Pear_Package_Contents_Ignore implementation that ignores files based on a pattern list.

Summary

Methods
Properties
Constants
__construct()
isIgnored()
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 ignore patterns.

string $root

The root position for the files that should be checked.

isIgnored()

isIgnored(\SplFileInfo  $element) : boolean

Tell whether to ignore the element.

Parameters

\SplFileInfo $element

The element to check.

Returns

boolean —

True if the element should be ignored, false otherwise.