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

Visibility criterion handler. More...

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

Public Member Functions

 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...
 

Additional Inherited Members

- Protected Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 getUniqueTableName ()
 Returns a unique table name. More...
 
- Protected Attributes inherited from eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler
 $comparatorMap
 
 $dbHandler
 

Detailed Description

Visibility criterion handler.

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriterionHandler\Visibility::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\Visibility::handle ( CriteriaConverter  $converter,
ezcQuerySelect  $query,
Criterion  $criterion 
)

Generate query expression for a Criterion this handler accepts.

accept() must be called before calling this method.

Todo:
: Needs optimisation since this subselect can potentially be problematic due to large number of contentobject_id values returned. One way to fix this is to use inner joins on ezcontentobject_tree table, but this is not currently supported in legacy search gateway
Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\Search\Gateway\CriteriaConverter$converter
\ezcQuerySelect$query
\eZ\Publish\API\Repository\Values\Content\Query\Criterion$criterion
Returns

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