eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\TransformationProcessor\PreprocessedBased Class Reference

Class for processing a set of transformations, loaded from .tr files, on a string. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\TransformationProcessor\PreprocessedBased:
+ Collaboration diagram for eZ\Publish\Core\Persistence\TransformationProcessor\PreprocessedBased:

Public Member Functions

 __construct (PcreCompiler $compiler, $installDir, array $ruleFiles=array())
 Constructor. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\TransformationProcessor
 __construct (PcreCompiler $compiler, array $ruleFiles=array())
 Construct instance of TransformationProcessor. More...
 
 transform ($string, array $ruleNames=array())
 Transform the given string. More...
 
 transformByGroup ($string, $ruleGroup)
 Transform the given string by group. More...
 

Protected Member Functions

 getRules ()
 Loads rules. More...
 
- Protected Member Functions inherited from eZ\Publish\Core\Persistence\TransformationProcessor
 getRules ()
 Loads rules. More...
 

Protected Attributes

 $installDir
 
- Protected Attributes inherited from eZ\Publish\Core\Persistence\TransformationProcessor
 $compiledRules = null
 
 $compiler = null
 
 $ruleFiles = array()
 

Additional Inherited Members

- Public Attributes inherited from eZ\Publish\Core\Persistence\TransformationProcessor
const T_COMMENT = 1
 
const T_MAP = 11
 
const T_REPLACE = 12
 
const T_SECTION = 10
 
const T_TRANSPOSE = 13
 
const T_TRANSPOSE_MODULO = 14
 
const T_WHITESPACE = 2
 

Detailed Description

Class for processing a set of transformations, loaded from .tr files, on a string.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\TransformationProcessor\PreprocessedBased::__construct ( PcreCompiler  $compiler,
  $installDir,
array  $ruleFiles = array() 
)

Constructor.

Parameters
\eZ\Publish\Core\Persistence\TransformationProcessor\PcreCompiler$compiler
string$installDirBase dir for rule loading
array$ruleFiles

Member Function Documentation

eZ\Publish\Core\Persistence\TransformationProcessor\PreprocessedBased::getRules ( )
protected

Loads rules.

Returns
array

Member Data Documentation

eZ\Publish\Core\Persistence\TransformationProcessor\PreprocessedBased::$installDir
protected

The documentation for this class was generated from the following file: