DocumentTypeExclusionRestriction
class \
- Implements
- QueryRestrictionInterface
Restriction to make queries for pages doktype-aware.
Table of Contents
Interfaces
- QueryRestrictionInterface
- The main restriction interface. All restrictions (including the collections) must implement this.
Properties
- $doktypes : int[]
Methods
- __construct() : mixed
- buildExpression() : CompositeExpression
- Main method to build expressions for given tables
Properties
$doktypes
protected
int[]
$doktypes
Methods
__construct()
public
__construct(int[]|int $doktype) : mixed
Parameters
- $doktype : int[]|int
buildExpression()
Main method to build expressions for given tables
public
buildExpression(array $queriedTables, ExpressionBuilder $expressionBuilder) : CompositeExpression
Parameters
- $queriedTables : array
-
Array of tables, where array key is table alias and value is a table name
- $expressionBuilder : ExpressionBuilder
-
Expression builder instance to add restrictions with
Return values
CompositeExpression —The result of query builder expression(s)