eZPublishCommunityProject  2013.4
eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased Class Reference

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

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased:

Public Member Functions

 __construct (Parser $parser, PcreCompiler $compiler, array $ruleFiles=array())
 Construct instance of TransformationProcessor. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor
 __construct (PcreCompiler $compiler, array $ruleFiles=array())
 Construct instance of TransformationProcessor. More...
 
 transform ($string, array $ruleNames=null)
 Transform the given string. More...
 

Protected Member Functions

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

Protected Attributes

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

Additional Inherited Members

- Public Attributes inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\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\Legacy\Content\Search\TransformationProcessor\DefinitionBased::__construct ( Parser  $parser,
PcreCompiler  $compiler,
array  $ruleFiles = array() 
)

Construct instance of TransformationProcessor.

Through the $ruleFiles array, a list of files with full text transformation rules is given. These files are parsed by eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased\Parserandthenusedfornormalizationinthefulltextsearch.@param\eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased\Parser$parser@param\eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\PcreCompiler$compiler@paramarray$ruleFiles@return\eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased::getRules ( )
protected

Loads rules.

Returns
array

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor\DefinitionBased::$parser = null
protected

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