‪TYPO3CMS  9.5
TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService Class Reference

Public Member Functions

 __construct ()
 
string renderIsPublic (array $propertyArray)
 

Protected Member Functions

string renderFileInformationContent (array $fileRecord, $isPublic)
 

Detailed Description

Utility class to render capabilities of the storage.

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0.

Definition at line 30 of file UserStorageCapabilityService.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService::__construct ( )

Constructor logs deprecation

Definition at line 35 of file UserStorageCapabilityService.php.

Member Function Documentation

◆ renderFileInformationContent()

string TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService::renderFileInformationContent ( array  $fileRecord,
  $isPublic 
)
protected

Renders a HTML block containing the checkbox for field "is_public".

Parameters
array$fileRecord
bool$isPublic
Returns
‪string

Definition at line 98 of file UserStorageCapabilityService.php.

Referenced by TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService\renderIsPublic().

◆ renderIsPublic()

string TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService::renderIsPublic ( array  $propertyArray)

UserFunc function for rendering field "is_public". There are some edge cases where "is_public" can never be marked as true in the BE, for instance for storage located outside the document root or for storages driven by special driver such as Flickr, ...

Parameters
array$propertyArray‪the array with additional configuration options.
Returns
‪string

Definition at line 49 of file UserStorageCapabilityService.php.

References $GLOBALS, TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, TYPO3\CMS\Core\Resource\ResourceFactory\getInstance(), TYPO3\CMS\Core\Resource\ResourceFactory\getStorageObject(), TYPO3\CMS\Core\Resource\ResourceStorage\getStorageRecord(), TYPO3\CMS\Core\Resource\Service\UserStorageCapabilityService\renderFileInformationContent(), and TYPO3\CMS\Core\Messaging\AbstractMessage\WARNING.