‪TYPO3CMS  11.5
TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider Class Reference
Inheritance diagram for TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider:
TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\ProviderInterface

Public Member Functions

bool canHandle ()
 
int getPriority ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider
array addItems (array $items)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
 __construct (string $table, string $identifier, string $context='')
 

Protected Member Functions

bool canRender (string $itemName, string $type)
 
 initPermissions ()
 
bool canBeCreated ()
 
bool canBeEdited ()
 
bool isRecordLocked ()
 
bool canBeCut ()
 
bool canBeCopied ()
 
bool canBePastedInto ()
 
bool canBePastedAfter ()
 
bool canBeSorted ()
 
bool canBeDeleted ()
 
bool canBeViewed ()
 
bool canShowInfo ()
 
bool canClearCache ()
 
bool isDeleted ()
 
bool isRoot ()
 
bool isWebMount ()
 
array getAdditionalAttributes (string $itemName)
 
int getPreviewPid ()
 
string getViewLink ()
 
bool canBeToggled (string $fieldName, int $value)
 
bool hasLanguageAccess ()
 
bool isExcludedDoktype ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider
 initialize ()
 
bool hasPagePermission (int $permission)
 
array getViewAdditionalAttributes ()
 
array getEnableDisableAdditionalAttributes ()
 
array getPasteAdditionalAttributes (string $type)
 
array getDeleteAdditionalAttributes ()
 
bool canShowHistory ()
 
bool canBeNew ()
 
bool isDeletionDisabledInTS ()
 
bool canBeEnabled ()
 
bool canBeDisabled ()
 
bool canOpenNewCEWizard ()
 
bool canOpenListModule ()
 
bool hasDisableColumnWithValue (int $value)
 
bool isDeletePlaceholder ()
 
bool isRecordInClipboard (string $mode='')
 
bool isRecordATranslation ()
 
bool isRecordCurrentBackendUser ()
 
bool parentPageCanBeViewed ()
 
string getIdentifier ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
 initClipboard ()
 
 initDisabledItems ()
 
array prepareItems (array $itemsConfiguration)
 

Protected Attributes

string $table = 'pages'
 
array $itemsConfiguration
 
bool $languageAccess = false
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider
array $record = array( )
 
array $pageRecord = array( )
 
Permission $pagePermissions
 
array $itemsConfiguration
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
LanguageService $languageService
 
BackendUserAuthentication $backendUser
 
TYPO3 CMS Backend Clipboard Clipboard $clipboard
 
array $itemsConfiguration = array( )
 
array $disabledItems = array( )
 
string $table = ''
 
string $identifier = ''
 
string $context = ''
 

Detailed Description

Context menu item provider for pages table

Definition at line 30 of file PageProvider.php.

Member Function Documentation

◆ canBeCopied()

◆ canBeCreated()

◆ canBeCut()

◆ canBeDeleted()

◆ canBeEdited()

◆ canBePastedAfter()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canBePastedAfter ( )
protected

◆ canBePastedInto()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canBePastedInto ( )
protected

◆ canBeSorted()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canBeSorted ( )
protected

◆ canBeToggled()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canBeToggled ( string  $fieldName,
int  $value 
)
protected

Checks if user has access to this column and the page doktype is lower than 200 (exclude sys_folder, ...) and it contains given value

Parameters
string$fieldName
int$value
Returns
‪bool

Definition at line 605 of file PageProvider.php.

References $GLOBALS, TYPO3\CMS\Core\Domain\Repository\PageRepository\DOKTYPE_SPACER, and TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\isRoot().

Referenced by TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canRender().

◆ canBeViewed()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canBeViewed ( )
protected

◆ canClearCache()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canClearCache ( )
protected

Checks if the user has clear cache rights

Returns
‪bool

Definition at line 480 of file PageProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\isRoot().

Referenced by TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canRender().

◆ canHandle()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canHandle ( )

Checks if the provider can add items to the menu

Returns
‪bool

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider.

Definition at line 177 of file PageProvider.php.

◆ canRender()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canRender ( string  $itemName,
string  $type 
)
protected
Parameters
string$itemName
string$type
Returns
‪bool

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider.

Definition at line 195 of file PageProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeCopied(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeCreated(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeCut(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeDeleted(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\canBeDisabled(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeEdited(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\canBeEnabled(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBePastedAfter(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBePastedInto(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeSorted(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeToggled(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeViewed(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canClearCache(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\canOpenListModule(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\canShowHistory(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canShowInfo(), TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\isRecordInClipboard(), and TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\isRoot().

◆ canShowInfo()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::canShowInfo ( )
protected

◆ getAdditionalAttributes()

◆ getPreviewPid()

int TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::getPreviewPid ( )
protected

◆ getPriority()

int TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::getPriority ( )
Returns
‪int

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider.

Definition at line 185 of file PageProvider.php.

◆ getViewLink()

string TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::getViewLink ( )
protected

Returns the view link

Returns
‪string

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider.

Definition at line 577 of file PageProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\getPreviewPid().

◆ hasLanguageAccess()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::hasLanguageAccess ( )
protected

Returns true if a current user has access to the language of the record

See also
BackendUserAuthentication::checkLanguageAccess()
Returns
‪bool

Definition at line 626 of file PageProvider.php.

References $GLOBALS, and TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\$table.

Referenced by TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\initPermissions().

◆ initPermissions()

TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::initPermissions ( )
protected

Saves calculated permissions for a page to speed things up

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider.

Definition at line 274 of file PageProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\hasLanguageAccess().

◆ isDeleted()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::isDeleted ( )
protected

Determines whether this node is deleted.

Returns
‪bool

Definition at line 491 of file PageProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider\isDeletePlaceholder().

Referenced by TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeViewed().

◆ isExcludedDoktype()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::isExcludedDoktype ( )
protected

◆ isRecordLocked()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::isRecordLocked ( )
protected

◆ isRoot()

◆ isWebMount()

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::isWebMount ( )
protected

Returns true if current record is a web mount

Returns
‪bool

Definition at line 511 of file PageProvider.php.

Referenced by TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeCopied(), and TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeCut().

Member Data Documentation

◆ $itemsConfiguration

array TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::$itemsConfiguration
protected

Definition at line 38 of file PageProvider.php.

◆ $languageAccess

bool TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::$languageAccess = false
protected

Definition at line 170 of file PageProvider.php.

◆ $table

string TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider::$table = 'pages'
protected