W3cubDocs

/Symfony 2.8

Symfony\Component\Finder\Expression\Glob

class Glob implements ValueInterface

Methods

__construct(string $pattern)
string render()

Renders string representation of expression.

string renderPattern()

Renders string representation of pattern.

int getType()

Returns expression type.

bool isCaseSensitive()

Returns value case sensitivity.

ValueInterface prepend(string $expr)
ValueInterface append(string $expr)
bool isExpandable()

Tests if glob is expandable ("*.{a,b}" syntax).

Regex toRegex(bool $strictLeadingDot = true, bool $strictWildcardSlash = true)

Details

public __construct(string $pattern)

Parameters

string $pattern

public string render()

Renders string representation of expression.

Return Value

string

public string renderPattern()

Renders string representation of pattern.

Return Value

string

public int getType()

Returns expression type.

Return Value

int

public bool isCaseSensitive()

Returns value case sensitivity.

Return Value

bool

public ValueInterface prepend(string $expr)

Parameters

string $expr

Return Value

ValueInterface

public ValueInterface append(string $expr)

Parameters

string $expr

Return Value

ValueInterface

public bool isExpandable()

Tests if glob is expandable ("*.{a,b}" syntax).

Return Value

bool

public Regex toRegex(bool $strictLeadingDot = true, bool $strictWildcardSlash = true)

Parameters

bool $strictLeadingDot
bool $strictWildcardSlash

Return Value

Regex

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Finder/Expression/Glob.html