TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FilesContentObject Class Reference
Inheritance diagram for FilesContentObject:
AbstractContentObject

Public Member Functions

 render ($conf=[])
 
- Public Member Functions inherited from AbstractContentObject
 __construct (ContentObjectRenderer $cObj)
 
 render ($conf=[])
 
 getContentObject ()
 
 getContentObjectRenderer ()
 

Protected Member Functions

 findAndSortFiles (array $conf)
 
 addFileReferences (array $configuration, array $element, FileCollector $fileCollector)
 
 getPageRepository ()
 
 getFileCollector ()
 
- Protected Member Functions inherited from AbstractContentObject
 getPageRenderer ()
 

Additional Inherited Members

- Protected Attributes inherited from AbstractContentObject
 $cObj
 
 $pageRenderer = null
 

Detailed Description

Contains FILES content object

Definition at line 24 of file FilesContentObject.php.

Member Function Documentation

addFileReferences ( array  $configuration,
array  $element,
FileCollector  $fileCollector 
)
protected

Handles and resolves file references.

Parameters
array$configurationTypoScript configuration
array$elementThe parent element referencing to files
FileCollector$fileCollector
Returns
array

Definition at line 160 of file FilesContentObject.php.

References $GLOBALS, FileCollector\addFilesFromRelation(), and FilesContentObject\getPageRepository().

Referenced by FilesContentObject\findAndSortFiles().

findAndSortFiles ( array  $conf)
protected

Function to check for references, collections, folders and accumulates into one etc.

Parameters
array$conf
Returns
FileCollector

Definition at line 89 of file FilesContentObject.php.

References FilesContentObject\addFileReferences(), FilesContentObject\getFileCollector(), GeneralUtility\intExplode(), and GeneralUtility\trimExplode().

Referenced by FilesContentObject\render().

getFileCollector ( )
protected
Returns
FileCollector

Definition at line 217 of file FilesContentObject.php.

References GeneralUtility\makeInstance().

Referenced by FilesContentObject\findAndSortFiles().

getPageRepository ( )
protected
Returns

Definition at line 209 of file FilesContentObject.php.

References $GLOBALS.

Referenced by FilesContentObject\addFileReferences().

render (   $conf = [])

Rendering the cObject FILES

Parameters
array$confArray of TypoScript properties
Returns
string Output

Definition at line 32 of file FilesContentObject.php.

References $GLOBALS, FilesContentObject\findAndSortFiles(), and MathUtility\forceIntegerInRange().