FrontendGroupRestriction implements QueryRestrictionInterface
Restriction to filter records, which are limited to the given user groups
Table of Contents
Interfaces
- QueryRestrictionInterface
- The main restriction interface. All restrictions (including the collections) must implement this.
Properties
- $frontendGroupIds : array<string|int, mixed>
- $tcaSchemaFactory : TcaSchemaFactory
Methods
- __construct() : mixed
- buildExpression() : CompositeExpression
- Main method to build expressions for given tables Evaluates the ctrl/enablecolumns/fe_group flag of the table and adds the according restriction if set
Properties
$frontendGroupIds
        protected
            array<string|int, mixed>
    $frontendGroupIds
    
    
    
    
    
    
$tcaSchemaFactory
        protected
            TcaSchemaFactory
    $tcaSchemaFactory
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct([array<string|int, mixed>|null $frontendGroupIds = null ]) : mixed
    Parameters
- $frontendGroupIds : array<string|int, mixed>|null = null
- 
                    Normalized array with user groups of currently logged in user (typically found in the Frontend Context) 
buildExpression()
Main method to build expressions for given tables Evaluates the ctrl/enablecolumns/fe_group flag of the table and adds the according restriction if set
    public
                    buildExpression(array<string|int, mixed> $queriedTables, ExpressionBuilder $expressionBuilder) : CompositeExpression
    Parameters
- $queriedTables : array<string|int, mixed>
- 
                    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)