‪TYPO3CMS  ‪main
TYPO3\CMS\Filelist\Dto\ResourceView Class Reference

Public Member Functions

 __construct (public readonly ResourceInterface $resource, public readonly UserPermissions $userPermissions, public readonly Icon $icon)
 
 getUid ()
 
 getIdentifier ()
 
 getStateIdentifier ()
 
 getMetaDataUid ()
 
 getType ()
 
 getName ()
 
 getPath ()
 
 getPublicUrl ()
 
 getPreview ()
 
 getThumbnailUri ()
 
 getIconSmall ()
 
 getIconMedium ()
 
 getIconLarge ()
 
 getCreatedAt ()
 
 getUpdatedAt ()
 
 getCheckboxConfig ()
 
 isMissing ()
 
 isLocked ()
 
 canEditMetadata ()
 
 canRead ()
 
 canWrite ()
 
 canDelete ()
 
 canCopy ()
 
 canRename ()
 
 canMove ()
 

Public Attributes

string $moduleUri
 
string $editContentUri
 
string $editDataUri
 
string $replaceUri
 
bool $isDownloadable = true
 
bool $isSelectable = true
 
bool $isSelected = false
 

Detailed Description

Definition at line 33 of file ResourceView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Filelist\Dto\ResourceView::__construct ( public readonly ResourceInterface  $resource,
public readonly UserPermissions  $userPermissions,
public readonly Icon  $icon 
)

Definition at line 44 of file ResourceView.php.

Member Function Documentation

◆ canCopy()

TYPO3\CMS\Filelist\Dto\ResourceView::canCopy ( )

Definition at line 264 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\createControlCopy().

◆ canDelete()

TYPO3\CMS\Filelist\Dto\ResourceView::canDelete ( )

Definition at line 255 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\createControlDelete().

◆ canEditMetadata()

TYPO3\CMS\Filelist\Dto\ResourceView::canEditMetadata ( )

◆ canMove()

TYPO3\CMS\Filelist\Dto\ResourceView::canMove ( )

Definition at line 282 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\createControlCut().

◆ canRead()

◆ canRename()

TYPO3\CMS\Filelist\Dto\ResourceView::canRename ( )

Definition at line 273 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\createControlRename().

◆ canWrite()

◆ getCheckboxConfig()

TYPO3\CMS\Filelist\Dto\ResourceView::getCheckboxConfig ( )

◆ getCreatedAt()

TYPO3\CMS\Filelist\Dto\ResourceView::getCreatedAt ( )

Definition at line 172 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\renderCreationTime().

◆ getIconLarge()

TYPO3\CMS\Filelist\Dto\ResourceView::getIconLarge ( )

Definition at line 164 of file ResourceView.php.

References TYPO3\CMS\Core\Imaging\Icon\setSize().

◆ getIconMedium()

TYPO3\CMS\Filelist\Dto\ResourceView::getIconMedium ( )

Definition at line 156 of file ResourceView.php.

References TYPO3\CMS\Core\Imaging\Icon\setSize().

◆ getIconSmall()

TYPO3\CMS\Filelist\Dto\ResourceView::getIconSmall ( )

◆ getIdentifier()

◆ getMetaDataUid()

TYPO3\CMS\Filelist\Dto\ResourceView::getMetaDataUid ( )

◆ getName()

◆ getPath()

TYPO3\CMS\Filelist\Dto\ResourceView::getPath ( )

◆ getPreview()

TYPO3\CMS\Filelist\Dto\ResourceView::getPreview ( )

◆ getPublicUrl()

TYPO3\CMS\Filelist\Dto\ResourceView::getPublicUrl ( )

Definition at line 116 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\createControlView().

◆ getStateIdentifier()

TYPO3\CMS\Filelist\Dto\ResourceView::getStateIdentifier ( )

Calculates a state identifier used for drag&drop into the file tree

Definition at line 67 of file ResourceView.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\md5int().

◆ getThumbnailUri()

TYPO3\CMS\Filelist\Dto\ResourceView::getThumbnailUri ( )

◆ getType()

TYPO3\CMS\Filelist\Dto\ResourceView::getType ( )

Definition at line 82 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\renderType().

◆ getUid()

TYPO3\CMS\Filelist\Dto\ResourceView::getUid ( )

Definition at line 50 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\createControlDelete().

◆ getUpdatedAt()

TYPO3\CMS\Filelist\Dto\ResourceView::getUpdatedAt ( )

◆ isLocked()

TYPO3\CMS\Filelist\Dto\ResourceView::isLocked ( )

Definition at line 220 of file ResourceView.php.

◆ isMissing()

TYPO3\CMS\Filelist\Dto\ResourceView::isMissing ( )

Definition at line 211 of file ResourceView.php.

Referenced by TYPO3\CMS\Filelist\FileList\renderName().

Member Data Documentation

◆ $editContentUri

string TYPO3\CMS\Filelist\Dto\ResourceView::$editContentUri

Definition at line 36 of file ResourceView.php.

◆ $editDataUri

string TYPO3\CMS\Filelist\Dto\ResourceView::$editDataUri

Definition at line 37 of file ResourceView.php.

◆ $isDownloadable

bool TYPO3\CMS\Filelist\Dto\ResourceView::$isDownloadable = true

Definition at line 40 of file ResourceView.php.

◆ $isSelectable

bool TYPO3\CMS\Filelist\Dto\ResourceView::$isSelectable = true

Definition at line 41 of file ResourceView.php.

◆ $isSelected

bool TYPO3\CMS\Filelist\Dto\ResourceView::$isSelected = false

◆ $moduleUri

string TYPO3\CMS\Filelist\Dto\ResourceView::$moduleUri

Definition at line 35 of file ResourceView.php.

◆ $replaceUri

string TYPO3\CMS\Filelist\Dto\ResourceView::$replaceUri

Definition at line 38 of file ResourceView.php.