TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\ContentObject\FilesContentObject Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\ContentObject\FilesContentObject:
TYPO3\CMS\Frontend\ContentObject\AbstractContentObject tslib_content_Files

Public Member Functions

 setFileFactory ($fileFactory)
 
 getFileFactory ()
 
 setFileRepository ($fileRepository)
 
 getFileRepository ()
 
 setCollectionRepository ($collectionRepository)
 
 getCollectionRepository ()
 
- Public Member Functions inherited from TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 __construct (\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $cObj)
 
 render ($conf=array())
 
 getContentObject ()
 

Protected Member Functions

 handleFileReferences (array $configuration, array $element, array &$fileObjects)
 
 addToArray ($newItems, array &$theArray)
 
 stdWrapValue ($key, array $config, $defaultValue='')
 
 getPageRepository ()
 

Protected Attributes

 $collectionRepository = NULL
 
 $fileFactory = NULL
 
 $fileRepository = NULL
 
- Protected Attributes inherited from TYPO3\CMS\Frontend\ContentObject\AbstractContentObject
 $cObj
 
 $fileFactory = NULL
 

Detailed Description

Contains FILES content object

Author
Ingmar Schlecht ingma.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 25 of file FilesContentObject.php.

Member Function Documentation

◆ addToArray()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::addToArray (   $newItems,
array &  $theArray 
)
protected

Adds $newItems to $theArray, which is passed by reference. Array must only consist of numerical keys.

Parameters
mixed$newItemsArray with new items or single object that's added.
array$theArrayThe array the new items should be added to. Must only contain numeric keys (for array_merge() to add items instead of replacing).

Definition at line 333 of file FilesContentObject.php.

Referenced by TYPO3\CMS\Frontend\ContentObject\FilesContentObject\handleFileReferences().

◆ getCollectionRepository()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::getCollectionRepository ( )

◆ getFileFactory()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::getFileFactory ( )

◆ getFileRepository()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::getFileRepository ( )

◆ getPageRepository()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::getPageRepository ( )
protected

◆ handleFileReferences()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::handleFileReferences ( array  $configuration,
array  $element,
array &  $fileObjects 
)
protected

Handles and resolves file references.

Parameters
array$configurationTypoScript configuration
array$elementThe parent element referencing to files
array$fileObjectsCollection of file objects
Returns
void

Definition at line 274 of file FilesContentObject.php.

References $GLOBALS, TYPO3\CMS\Frontend\ContentObject\FilesContentObject\addToArray(), and TYPO3\CMS\Frontend\ContentObject\FilesContentObject\getPageRepository().

◆ setCollectionRepository()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::setCollectionRepository (   $collectionRepository)

Sets the collection repository.

Parameters
\TYPO3\CMS\Core\Resource\FileCollectionRepository$collectionRepository
Returns
void

Definition at line 249 of file FilesContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\FilesContentObject\$collectionRepository.

◆ setFileFactory()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::setFileFactory (   $fileFactory)

Sets the file factory.

Parameters
\TYPO3\CMS\Core\Resource\ResourceFactory$fileFactory
Returns
void

Definition at line 203 of file FilesContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\FilesContentObject\$fileFactory.

◆ setFileRepository()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::setFileRepository (   $fileRepository)

Sets the file repository.

Parameters
\TYPO3\CMS\Core\Resource\FileRepository$fileRepository
Returns
void

Definition at line 226 of file FilesContentObject.php.

References TYPO3\CMS\Frontend\ContentObject\FilesContentObject\$fileRepository.

◆ stdWrapValue()

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::stdWrapValue (   $key,
array  $config,
  $defaultValue = '' 
)
protected

Gets a configuration value by passing them through stdWrap first and taking a default value if stdWrap doesn't yield a result.

Parameters
string$keyThe config variable key (from TS array).
array$configThe TypoScript array.
string$defaultValueOptional default value.
Returns
string Value of the config variable
Deprecated:
since TYPO3 CMS 6.2, use ContentObjectRenderer::stdWrapValue() instead. Will be removed two versions later.

Definition at line 350 of file FilesContentObject.php.

Member Data Documentation

◆ $collectionRepository

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::$collectionRepository = NULL
protected

◆ $fileFactory

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::$fileFactory = NULL
protected

◆ $fileRepository

TYPO3\CMS\Frontend\ContentObject\FilesContentObject::$fileRepository = NULL
protected