TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FrontendRestrictionContainer Class Reference
Inheritance diagram for FrontendRestrictionContainer:
AbstractRestrictionContainer QueryRestrictionContainerInterface QueryRestrictionInterface

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from AbstractRestrictionContainer
 buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 
 removeAll ()
 
 removeByType (string $restrictionType)
 
 add (QueryRestrictionInterface $restriction)
 

Protected Attributes

 $defaultRestrictionTypes
 
- Protected Attributes inherited from AbstractRestrictionContainer
 $restrictions = []
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractRestrictionContainer
 createRestriction ($restrictionClass)
 

Detailed Description

A collection of restrictions to be used in frontend context. This is a replacement for PageRepository::enableFields()

Definition at line 26 of file FrontendRestrictionContainer.php.

Constructor & Destructor Documentation

__construct ( )

FrontendRestrictionContainer constructor. Initializes the default restrictions for frontend requests

Definition at line 44 of file FrontendRestrictionContainer.php.

References AbstractRestrictionContainer\add(), and AbstractRestrictionContainer\createRestriction().

Member Data Documentation

$defaultRestrictionTypes
protected
Initial value:
= [
DeletedRestriction::class,
FrontendWorkspaceRestriction::class,
HiddenRestriction::class,
StartTimeRestriction::class,
EndTimeRestriction::class,
FrontendGroupRestriction::class,
]

Definition at line 31 of file FrontendRestrictionContainer.php.