Documentation

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
author

Gunnar Wrobel wrobel@pardus.de

author

Jan Schneider jan@horde.org

category

Horde

copyright

2011-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

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

$_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.

Search results