PregFilter class

Filter to transform a string to all Preg.

Class Overview

Filter to transform a string to all Preg.

Public Methods

__construct($regexp, $replace)

Constructor.

Parameters

$regexp

The regular expression. This is the first argument to preg_replace.

$replace

The replacement value. This is the second argument to preg_replace.

filter($value)

Applies the PregFilter to the passed value.

Parameters

$value

The value to filter.

Return value

The string filtered through preg_replace.

Protected Attributes

$regexp [protected]

$replace [protected]

Inheritance

Base Classes

Inherited members