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

Public Member Functions

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

Detailed Description

Interface that all restriction collections must implement. It is an extension of the QueryRestrictionInterface, so collections can be treated as single restriction

Definition at line 22 of file QueryRestrictionContainerInterface.php.

Member Function Documentation

add ( QueryRestrictionInterface  $restriction)

Add a new restriction instance to this collection

Parameters
QueryRestrictionInterface$restriction
Returns
QueryRestrictionContainerInterface

Implemented in AbstractRestrictionContainer.

Referenced by DataHandler\addDeleteRestriction().

removeAll ( )

Removes all restrictions stored within this container

Returns
QueryRestrictionContainerInterface

Implemented in AbstractRestrictionContainer.

removeByType ( string  $restrictionType)

Remove restriction of a given type

Parameters
string$restrictionTypeClass name of the restriction to be removed
Returns
QueryRestrictionContainerInterface

Implemented in AbstractRestrictionContainer.