Class

eZ\Publish\Core\Persistence\TransformationProcessor

abstract class TransformationProcessor

Interface for processing a set of transformations on a string.

Constants

T_COMMENT

T_WHITESPACE

T_SECTION

T_MAP

T_REPLACE

T_TRANSPOSE

T_TRANSPOSE_MODULO

Methods

__construct(PcreCompiler $compiler, array $ruleFiles = array())

Construct instance of TransformationProcessor.

string transform(string $string, array $ruleNames = array())

Transform the given string.

string transformByGroup(string $string, string $ruleGroup)

Transform the given string by group.

Details

at line 56
public __construct(PcreCompiler $compiler, array $ruleFiles = array())

Construct instance of TransformationProcessor.

Through the $ruleFiles array, a list of files with full text transformation rules is given.

Parameters

PcreCompiler $compiler
array $ruleFiles

at line 80
public string transform(string $string, array $ruleNames = array())

Transform the given string.

Transform the given string using the given rules. If no rules are specified, all available rules will be used for the transformation.

Parameters

string $string
array $ruleNames

Return Value

string

at line 113
public string transformByGroup(string $string, string $ruleGroup)

Transform the given string by group.

Transform the given string using a rule group.

Parameters

string $string
string $ruleGroup

Return Value

string