‪TYPO3CMS  ‪main
TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction Class Reference
Inheritance diagram for TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction:
TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface

Public Member Functions

 __construct (array $searchFields, QueryBuilder $queryBuilder)
 
 buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Protected Member Functions

 getAllowedLanguagesForCurrentUser ()
 
string[] getExplicitAllowTypesForCurrentUser (string $table, string $typeField)
 
 getAllowedFieldsForCurrentUser (array $searchFields=[])
 

Protected Attributes

array $allowedFields = array( )
 
array $allowedLanguages = array( )
 
array $explicitAllowFields = array( )
 
QueryBuilder $queryBuilder
 

Detailed Description

Definition at line 28 of file EditableRestriction.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::__construct ( array  $searchFields,
QueryBuilder  $queryBuilder 
)

Member Function Documentation

◆ buildExpression()

TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::buildExpression ( array  $queriedTables,
ExpressionBuilder  $expressionBuilder 
)

◆ getAllowedFieldsForCurrentUser()

TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::getAllowedFieldsForCurrentUser ( array  $searchFields = [])
protected

Get allowed table / fieldnames for current backend user. Only consider table / fields in $searchFields

Parameters
array$searchFields‪array of 'table' => ['field1, field2', ....] in which linkvalidator searches for broken links

Definition at line 122 of file EditableRestriction.php.

References TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction\$allowedFields, and $GLOBALS.

Referenced by TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction\__construct().

◆ getAllowedLanguagesForCurrentUser()

TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::getAllowedLanguagesForCurrentUser ( )
protected

◆ getExplicitAllowTypesForCurrentUser()

string [] TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::getExplicitAllowTypesForCurrentUser ( string  $table,
string  $typeField 
)
protected

Returns the allowed types for the current user. Should only be called if the table has a type field (defined by TCA ctrl => type) which contains 'authMode'.

Returns
‪string[]

Definition at line 99 of file EditableRestriction.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction\__construct().

Member Data Documentation

◆ $allowedFields

array TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::$allowedFields = array( )
protected

Specify which database fields the current user is allowed to edit

Definition at line 34 of file EditableRestriction.php.

Referenced by TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction\getAllowedFieldsForCurrentUser().

◆ $allowedLanguages

array TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::$allowedLanguages = array( )
protected

Specify which languages the current user is allowed to edit

Definition at line 40 of file EditableRestriction.php.

Referenced by TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction\getAllowedLanguagesForCurrentUser().

◆ $explicitAllowFields

array TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::$explicitAllowFields = array( )
protected

Explicit allow fields

Definition at line 46 of file EditableRestriction.php.

◆ $queryBuilder

QueryBuilder TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction::$queryBuilder
protected