‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Type\Bitmask\Permission Class Reference
Inheritance diagram for TYPO3\CMS\Core\Type\Bitmask\Permission:
TYPO3\CMS\Core\Type\BitSet

Public Member Functions

 isGranted (int $permission)
 
 nothingIsGranted ()
 
 showPagePermissionIsGranted ()
 
 editPagePermissionIsGranted ()
 
 createPagePermissionIsGranted ()
 
 deletePagePermissionIsGranted ()
 
 editContentPermissionIsGranted ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Type\BitSet
 __construct (int $set=0)
 
 set (int $bitIndex)
 
 setValue (int $bitIndex, bool $value)
 
 unset (int $bitIndex)
 
 get (int $bitIndex)
 
 clear ()
 
 and (BitSet $set)
 
 or (BitSet $set)
 
 xor (BitSet $set)
 
 andNot (BitSet $set)
 
 __toInt ()
 
 __toString ()
 

Static Public Member Functions

static getMap ()
 

Public Attributes

const NOTHING = 0
 
const PAGE_SHOW = 1
 
const PAGE_EDIT = 2
 
const PAGE_DELETE = 4
 
const PAGE_NEW = 8
 
const CONTENT_EDIT = 16
 
const ALL = 31
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Type\BitSet
int $set
 

Detailed Description

A class providing constants for bitwise operations on page access check

Definition at line 25 of file Permission.php.

Member Function Documentation

◆ createPagePermissionIsGranted()

TYPO3\CMS\Core\Type\Bitmask\Permission::createPagePermissionIsGranted ( )

Definition at line 103 of file Permission.php.

References TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_NEW.

◆ deletePagePermissionIsGranted()

TYPO3\CMS\Core\Type\Bitmask\Permission::deletePagePermissionIsGranted ( )

◆ editContentPermissionIsGranted()

TYPO3\CMS\Core\Type\Bitmask\Permission::editContentPermissionIsGranted ( )

◆ editPagePermissionIsGranted()

TYPO3\CMS\Core\Type\Bitmask\Permission::editPagePermissionIsGranted ( )

Definition at line 98 of file Permission.php.

References TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_EDIT.

◆ getMap()

static TYPO3\CMS\Core\Type\Bitmask\Permission::getMap ( )
static

Permission mapping Used for instance in PageTS

Definition at line 68 of file Permission.php.

Referenced by TYPO3\CMS\Core\DataHandling\PagePermissionAssembler\assemblePermissions().

◆ isGranted()

TYPO3\CMS\Core\Type\Bitmask\Permission::isGranted ( int  $permission)

Definition at line 83 of file Permission.php.

◆ nothingIsGranted()

TYPO3\CMS\Core\Type\Bitmask\Permission::nothingIsGranted ( )

Definition at line 88 of file Permission.php.

References TYPO3\CMS\Core\Type\Bitmask\Permission\NOTHING.

◆ showPagePermissionIsGranted()

TYPO3\CMS\Core\Type\Bitmask\Permission::showPagePermissionIsGranted ( )

Definition at line 93 of file Permission.php.

References TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW.

Member Data Documentation

◆ ALL

◆ CONTENT_EDIT

const TYPO3\CMS\Core\Type\Bitmask\Permission::CONTENT_EDIT = 16

Definition at line 55 of file Permission.php.

Referenced by TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\DatabaseUserPermissionCheckTest\addDataAddsUserPermissionsOnPageForContentIfUserHasCorrespondingPermissions(), TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\DatabaseUserPermissionCheckTest\addDataSetsUserPermissionsOnPageForNewContentRecord(), TYPO3\CMS\Backend\Tests\Unit\Form\FormDataProvider\DatabaseUserPermissionCheckTest\addDataSetsUserPermissionsOnPageForNewPageIfPageNewIsDeniedAndHookAllowsAccess(), TYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction\buildExpression(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\canBeEdited(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\canBePastedAfter(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeSorted(), TYPO3\CMS\SysNote\Provider\ButtonBarProvider\canCreateNewRecord(), TYPO3\CMS\Core\DataHandling\DataHandler\cannotDeleteRecord(), TYPO3\CMS\Core\DataHandling\DataHandler\checkRecordInsertAccess(), TYPO3\CMS\Core\DataHandling\DataHandler\checkRecordUpdateAccess(), TYPO3\CMS\Backend\RecordList\DatabaseRecordList\createActionButtonNewRecord(), TYPO3\CMS\Core\DataHandling\DataHandler\deleteRecord(), TYPO3\CMS\Core\Type\Bitmask\Permission\editContentPermissionIsGranted(), TYPO3\CMS\SysNote\Renderer\NoteRenderer\enrichWithEditPermissions(), TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumn\getEditUrl(), TYPO3\CMS\Backend\Controller\NewRecordController\init(), TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumn\isContentEditable(), TYPO3\CMS\Backend\Controller\PageLayoutController\isContentEditable(), TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem\isDelible(), TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem\isDragAndDropAllowed(), TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem\isEditable(), TYPO3\CMS\Backend\RecordList\DatabaseRecordList\makeControl(), TYPO3\CMS\Backend\Controller\EditDocumentController\makeEditForm(), and TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\PagePermissionTest\newPageReceivesDefaultPermissionSet().

◆ NOTHING

◆ PAGE_DELETE

◆ PAGE_EDIT

◆ PAGE_NEW

◆ PAGE_SHOW

const TYPO3\CMS\Core\Type\Bitmask\Permission::PAGE_SHOW = 1

Definition at line 35 of file Permission.php.

Referenced by TYPO3\CMS\Backend\Search\LiveSearch\DatabaseRecordProvider\__construct(), TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider\__construct(), TYPO3\CMS\Backend\Form\Wizard\SuggestWizardDefaultReceiver\__construct(), TYPO3\CMS\Impexp\ImportExport\__construct(), TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController\__invoke(), TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository\addPageTreeConstraintsToQuery(), TYPO3\CMS\Backend\Form\FormDataProvider\AbstractItemProvider\buildForeignTableQueryBuilder(), TYPO3\CMS\Core\Tests\Unit\Database\Query\Restriction\PagePermissionRestrictionTest\buildRestrictionsContainsNonAdminUserIdAsOwnerAndGroupIdsAsOwnerGroup(), TYPO3\CMS\Core\Tests\Unit\Database\Query\Restriction\PagePermissionRestrictionTest\buildRestrictionsIsSkippedForAdmins(), TYPO3\CMS\Core\Tests\Unit\Database\Query\Restriction\PagePermissionRestrictionTest\buildRestrictionsOnlyWorksOnPagesTable(), TYPO3\CMS\Core\Tests\Unit\Database\Query\Restriction\PagePermissionRestrictionTest\buildRestrictionsReturnsAZeroReturnSetWhenNotLoggedIn(), TYPO3\CMS\Backend\Routing\PreviewUriBuilder\buildUri(), TYPO3\CMS\Workspaces\Authentication\PreviewUserAuthentication\calcPerms(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeCopied(), TYPO3\CMS\Frontend\Page\PageInformationFactory\checkBackendUserAccess(), TYPO3\CMS\Backend\Form\Wizard\SuggestWizardDefaultReceiver\checkRecordAccess(), TYPO3\CMS\Frontend\Page\PageInformationFactory\checkRootlineForIncludeSection(), TYPO3\CMS\Core\DataHandling\DataHandler\copyRecord(), TYPO3\CMS\Core\DataHandling\DataHandler\copyRecord_raw(), TYPO3\CMS\SysNote\Renderer\NoteRenderer\enrichWithEditPermissions(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\filterValidWebMounts(), TYPO3\CMS\Backend\LinkHandler\PageLinkHandler\formatCurrentUrl(), TYPO3\CMS\Backend\Controller\PageLayoutController\generateMessagesForCurrentPage(), TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController\generateTableRow(), TYPO3\CMS\Backend\Controller\Page\TreeController\getAllEntryPointPageTrees(), TYPO3\CMS\Backend\Controller\Page\MovePageController\getContentVariables(), TYPO3\CMS\Backend\Form\Element\LinkElement\getLinkExplanation(), TYPO3\CMS\Linkvalidator\Controller\LinkValidatorController\getPageList(), TYPO3\CMS\Workspaces\Authentication\PreviewUserAuthentication\getPagePermsClause(), TYPO3\CMS\Info\Controller\PageInformationController\getPageRecordsRecursive(), TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager\getRecursiveStoragePids(), TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController\getSelectQuery(), TYPO3\CMS\Backend\Controller\Page\MovePageController\getSubpagesForPageId(), TYPO3\CMS\Info\Controller\PageInformationController\getTable_pages(), TYPO3\CMS\Info\Controller\TranslationStatusController\getTree(), TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\getTree(), TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\getTreeList(), TYPO3\CMS\Workspaces\Service\WorkspaceService\getTreeUids(), TYPO3\CMS\Adminpanel\Repositories\FrontendGroupsRepository\getUserGroupOptionCountByBackendUser(), TYPO3\CMS\Adminpanel\Repositories\FrontendGroupsRepository\getUserGroupsForPagesByBackendUser(), TYPO3\CMS\Backend\Controller\PageTsConfig\PageTsConfigRecordsOverviewController\handleRequest(), TYPO3\CMS\Recycler\Controller\RecyclerModuleController\handleRequest(), TYPO3\CMS\Impexp\Controller\ImportController\handleRequest(), TYPO3\CMS\Viewpage\Controller\ViewModuleController\handleRequest(), TYPO3\CMS\Backend\Controller\ContentElement\NewContentElementController\handleRequest(), TYPO3\CMS\Impexp\Controller\ExportController\handleRequest(), TYPO3\CMS\Backend\History\RecordHistory\hasPageAccess(), TYPO3\CMS\Info\Controller\InfoModuleController\init(), TYPO3\CMS\Backend\Controller\NewRecordController\init(), TYPO3\CMS\Backend\Controller\EditDocumentController\init(), TYPO3\CMS\Backend\Controller\PageLayoutController\initialize(), TYPO3\CMS\IndexedSearch\Controller\AdministrationController\initializeModuleTemplate(), TYPO3\CMS\Backend\Controller\Page\TreeController\initializePageTreeRepository(), TYPO3\CMS\Backend\Backend\Shortcut\ShortcutRepository\initShortcuts(), TYPO3\CMS\Core\DataHandling\DataHandler\int_pageTreeInfo(), TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isInWebMount(), TYPO3\CMS\Workspaces\Service\WorkspaceService\isPageAccessibleForCurrentUser(), TYPO3\CMS\Belog\Controller\BackendLogController\listAction(), TYPO3\CMS\Core\DataHandling\DataHandler\localize(), TYPO3\CMS\Backend\Controller\ClearPageCacheController\mainAction(), TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\mainAction(), TYPO3\CMS\Backend\Controller\ContentElement\MoveElementController\mainAction(), TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController\mainAction(), TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\mainAction(), TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\mainAction(), TYPO3\CMS\Backend\Controller\RecordListController\mainAction(), TYPO3\CMS\Lowlevel\Controller\DatabaseIntegrityController\makeOptionList(), TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\PagePermissionTest\newPageReceivesDefaultPermissionSet(), TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\PagePermissionTest\newPageReceivesOverriddenPageTsPermissionSet(), TYPO3\CMS\Core\Tests\Functional\DataHandling\DataHandler\PagePermissionTest\newPageReceivesOverriddenPageTsPermissionSetFromParent(), TYPO3\CMS\Backend\Controller\Page\MovePageController\pageHasSubpages(), TYPO3\CMS\Workspaces\Hook\DataHandlerHook\publishNewRecord(), TYPO3\CMS\Backend\Form\FieldWizard\RecordsOverview\render(), TYPO3\CMS\Backend\Form\Container\OuterWrapContainer\render(), TYPO3\CMS\Fluid\ViewHelpers\Be\TableListViewHelper\render(), TYPO3\CMS\Backend\Form\Container\FileReferenceContainer\renderFileReferenceHeaderControl(), TYPO3\CMS\Backend\Form\Container\InlineRecordContainer\renderForeignRecordHeaderControl(), TYPO3\CMS\Fluid\ViewHelpers\Be\PagePathViewHelper\renderStatic(), TYPO3\CMS\Fluid\ViewHelpers\Be\PageInfoViewHelper\renderStatic(), TYPO3\CMS\Backend\ElementBrowser\DatabaseBrowser\renderTableRecords(), TYPO3\CMS\Backend\LinkHandler\RecordLinkHandler\renderTableRecords(), TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\setPagePath(), TYPO3\CMS\Core\Type\Bitmask\Permission\showPagePermissionIsGranted(), TYPO3\CMS\Backend\RecordList\DatabaseRecordList\start(), TYPO3\CMS\Workspaces\Controller\AjaxController\switchWorkspaceAction(), TYPO3\CMS\Backend\Middleware\BackendModuleValidator\validateModuleAccess(), TYPO3\CMS\Workspaces\Hook\DataHandlerHook\version_swap(), and TYPO3\CMS\Core\DataHandling\DataHandler\versionizeRecord().