RootLevelCapability

final readonly class \TYPO3\CMS\Core\Schema\Capability\RootLevelCapability

Implements
SchemaCapabilityInterface

Capability to understand the flag within - security.ignoreRootLevelRestriction

Table of Contents

Interfaces

SchemaCapabilityInterface
A semantic interface for any kind of capability.

Constants

TYPE_BOTH  : int = -1
TYPE_ONLY_ON_PAGES  : int = 0
TYPE_ONLY_ON_ROOTLEVEL  : int = 1

Methods

__construct()  : mixed
canAccessRecordsOnRootLevel()  : bool
Allows non-admin users to access records that on the root-level (page-id 0), thus bypassing this usual restriction.
canExistOnPages()  : bool
canExistOnRootLevel()  : bool
getRootLevelType()  : int
shallIgnoreRootLevelRestriction()  : bool

Constants

TYPE_ONLY_ON_PAGES

public int TYPE_ONLY_ON_PAGES = 0

TYPE_ONLY_ON_ROOTLEVEL

public int TYPE_ONLY_ON_ROOTLEVEL = 1

Methods

__construct()

public __construct(int $rootLevelType, bool $ignoreRootLevelRestriction) : mixed

Parameters

$rootLevelType : int
$ignoreRootLevelRestriction : bool

canAccessRecordsOnRootLevel()

Allows non-admin users to access records that on the root-level (page-id 0), thus bypassing this usual restriction.

public canAccessRecordsOnRootLevel() : bool

Return values

bool

canExistOnPages()

public canExistOnPages() : bool

Return values

bool

canExistOnRootLevel()

public canExistOnRootLevel() : bool

Return values

bool

getRootLevelType()

public getRootLevelType() : int

Return values

int

shallIgnoreRootLevelRestriction()

public shallIgnoreRootLevelRestriction() : bool

Return values

bool
On this page