TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Resource\Hook\FileInfoHook Class Reference

Public Member Functions

 renderFileInfo (array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj)
 
 renderFileMetadataInfo (array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj)
 

Protected Member Functions

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

Detailed Description

Utility class to render TCEforms information about a sys_file record

Author
Benjamin Mack benni.nosp@m.@typ.nosp@m.o3.or.nosp@m.g

Definition at line 25 of file FileInfoHook.php.

Member Function Documentation

◆ renderFileInfo()

TYPO3\CMS\Core\Resource\Hook\FileInfoHook::renderFileInfo ( array  $propertyArray,
\TYPO3\CMS\Backend\Form\FormEngine  $tceformsObj 
)

User function for sys_file (element)

Parameters
array$propertyArraythe array with additional configuration options.
\TYPO3\CMS\Backend\Form\FormEngine$tceformsObjthe TCEforms parent object
Returns
string The HTML code for the TCEform field

Definition at line 34 of file FileInfoHook.php.

References TYPO3\CMS\Core\Resource\ResourceFactory\getInstance(), and TYPO3\CMS\Core\Resource\Hook\FileInfoHook\renderFileInformationContent().

◆ renderFileInformationContent()

TYPO3\CMS\Core\Resource\Hook\FileInfoHook::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 68 of file FileInfoHook.php.

References $GLOBALS, TYPO3\CMS\Core\Resource\ProcessedFile\CONTEXT_IMAGEPREVIEW, and TYPO3\CMS\Core\Utility\GeneralUtility\formatSize().

Referenced by TYPO3\CMS\Core\Resource\Hook\FileInfoHook\renderFileInfo(), and TYPO3\CMS\Core\Resource\Hook\FileInfoHook\renderFileMetadataInfo().

◆ renderFileMetadataInfo()

TYPO3\CMS\Core\Resource\Hook\FileInfoHook::renderFileMetadataInfo ( array  $propertyArray,
\TYPO3\CMS\Backend\Form\FormEngine  $tceformsObj 
)

User function for sys_file_meta (element)

Parameters
array$propertyArraythe array with additional configuration options.
\TYPO3\CMS\Backend\Form\FormEngine$tceformsObjthe TCEforms parent object
Returns
string The HTML code for the TCEform field

Definition at line 51 of file FileInfoHook.php.

References TYPO3\CMS\Core\Resource\ResourceFactory\getInstance(), and TYPO3\CMS\Core\Resource\Hook\FileInfoHook\renderFileInformationContent().