TYPO3  7.6
Public Member Functions | Protected Member Functions | List of all members
FileInfoHook Class Reference

Public Member Functions

 renderFileInfo (array $propertyArray)
 
 renderFileMetadataInfo (array $propertyArray)
 

Protected Member Functions

 renderFileInformationContent (\TYPO3\CMS\Core\Resource\File $file=null)
 

Detailed Description

Utility class to render TCEforms information about a sys_file record

Definition at line 23 of file FileInfoHook.php.

Member Function Documentation

renderFileInfo ( array  $propertyArray)

User function for sys_file (element)

Parameters
array$propertyArraythe array with additional configuration options.
Returns
string The HTML code for the TCEform field

Definition at line 31 of file FileInfoHook.php.

References ResourceFactory\getInstance(), and FileInfoHook\renderFileInformationContent().

renderFileInformationContent ( \TYPO3\CMS\Core\Resource\File  $file = null)
protected

Renders a HTML Block with file information

Parameters
\TYPO3\CMS\Core\Resource\File$file
Returns
string

Definition at line 65 of file FileInfoHook.php.

References $GLOBALS, ProcessedFile\CONTEXT_IMAGEPREVIEW, and GeneralUtility\formatSize().

Referenced by FileInfoHook\renderFileInfo(), and FileInfoHook\renderFileMetadataInfo().

renderFileMetadataInfo ( array  $propertyArray)

User function for sys_file_meta (element)

Parameters
array$propertyArraythe array with additional configuration options.
Returns
string The HTML code for the TCEform field

Definition at line 47 of file FileInfoHook.php.

References ResourceFactory\getInstance(), and FileInfoHook\renderFileInformationContent().