Documentation

EnsureFilterWorker
in package
implements WorkerInterface

Applies a filter to an asset based on a source and/or target path match.

Tags
author

Kris Wallsmith kris.wallsmith@gmail.com

todo

A better asset-matcher mechanism

Interfaces, Classes and Traits

WorkerInterface
Assets are passed through factory workers before leaving the factory.

Table of Contents

CHECK_SOURCE  = 1
CHECK_TARGET  = 2
$filter  : mixed
$flags  : mixed
$pattern  : mixed
__construct()  : mixed
Constructor.
process()  : AssetInterface|null
Processes an asset.

Constants

Properties

Methods

__construct()

Constructor.

public __construct(string $pattern, FilterInterface $filter[, int $flags = null ]) : mixed
Parameters
$pattern : string

A regex for checking the asset's target URL

$filter : FilterInterface

A filter to apply if the regex matches

$flags : int = null

Flags for what to check

Return values
mixed

Search results