eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText Class Reference

Full text criterion handler. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText:

Public Member Functions

 __construct (EzcDbHandler $dbHandler, TransformationProcessor $processor, array $configuration=array())
 Construct from full text search configuration. More...
 
 accept (Criterion $criterion)
 Check if this criterion handler accepts to handle the given criterion. More...
 
 handle (CriteriaConverter $converter, ezcQuerySelect $query, Criterion $criterion)
 Generate query expression for a Criterion this handler accepts. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 __construct (EzcDbHandler $dbHandler)
 Creates a new criterion handler. More...
 
 accept (Criterion $criterion)
 Check if this criterion handler accepts to handle the given criterion. More...
 
 handle (CriteriaConverter $converter, ezcQuerySelect $query, Criterion $criterion)
 Generate query expression for a Criterion this handler accepts. More...
 

Protected Member Functions

 getWordExpression (ezcQuerySelect $query, $token)
 Get single word query expression. More...
 
 getWordIdSubquery ($query, $string)
 Get subquery to select relevant word IDs. More...
 
 tokenizeString ($string)
 Tokenize String. More...
 
- Protected Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 getUniqueTableName ()
 Returns a unique table name. More...
 

Protected Attributes

 $configuration
 
 $processor
 
- Protected Attributes inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 $comparatorMap
 
 $dbHandler
 

Detailed Description

Full text criterion handler.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::__construct ( EzcDbHandler  $dbHandler,
TransformationProcessor  $processor,
array  $configuration = array() 
)

Construct from full text search configuration.

Parameters
array$configuration
Returns
void

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::accept ( Criterion  $criterion)

Check if this criterion handler accepts to handle the given criterion.

Parameters
\eZ\Publish\API\Repository\Values\Content\Query\Criterion$criterion
Returns
boolean
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::getWordExpression ( ezcQuerySelect  $query,
  $token 
)
protected

Get single word query expression.

Depending on the configuration of the full text search criterion converter wildcards are either transformed into the respective LIKE queries, or everything is just compared using equal.

Parameters
\ezcQuerySelect$query
string$token
Returns
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::getWordIdSubquery (   $query,
  $string 
)
protected

Get subquery to select relevant word IDs.

Parameters
string$string
Returns
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::handle ( CriteriaConverter  $converter,
ezcQuerySelect  $query,
Criterion  $criterion 
)

Generate query expression for a Criterion this handler accepts.

accept() must be called before calling this method.

Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriteriaConverter$converter
\ezcQuerySelect$query
\eZ\Publish\API\Repository\Values\Content\Query\Criterion$criterion
Returns
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::tokenizeString (   $string)
protected

Tokenize String.

Parameters
string$string
Returns
array

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::$configuration
protected
eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\FullText::$processor
protected

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