eZ\Publish\Core\Persistence\TransformationProcessor::__construct PHP Метод

__construct() публичный Метод

Through the $ruleFiles array, a list of files with full text transformation rules is given.
public __construct ( PcreCompiler $compiler, array $ruleFiles = [] )
$compiler eZ\Publish\Core\Persistence\TransformationProcessor\PcreCompiler
$ruleFiles array
    public function __construct(PcreCompiler $compiler, array $ruleFiles = array())
    {
        $this->ruleFiles = $ruleFiles;
        $this->compiler = $compiler;
    }

Usage Example

 /**
  * Construct instance of TransformationProcessor\DefinitionBased.
  *
  * Through the $ruleFiles array, a list of files with full text
  * transformation rules is given. These files are parsed by
  * {@link \eZ\Publish\Core\Persistence\TransformationProcessor\DefinitionBased\Parser}
  * and then used for normalization in the full text search.
  *
  * @param \eZ\Publish\Core\Persistence\TransformationProcessor\DefinitionBased\Parser $parser
  * @param \eZ\Publish\Core\Persistence\TransformationProcessor\PcreCompiler $compiler
  * @param array $ruleFiles
  *
  * @return \eZ\Publish\Core\Persistence\TransformationProcessor\DefinitionBased
  */
 public function __construct(Parser $parser, PcreCompiler $compiler, array $ruleFiles = array())
 {
     parent::__construct($compiler, $ruleFiles);
     $this->parser = $parser;
 }
All Usage Examples Of eZ\Publish\Core\Persistence\TransformationProcessor::__construct