TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FileRepository Class Reference
Inheritance diagram for FileRepository:
AbstractRepository RepositoryInterface SingletonInterface

Public Member Functions

 findFileReferenceByUid ($uid)
 
- Public Member Functions inherited from AbstractRepository
 __construct ()
 
 add ($object)
 
 remove ($object)
 
 replace ($existingObject, $newObject)
 
 update ($modifiedObject)
 
 getAddedObjects ()
 
 getRemovedObjects ()
 
 findAll ()
 
 countAll ()
 
 removeAll ()
 
 findByUid ($uid)
 
 setDefaultOrderings (array $defaultOrderings)
 
 setDefaultQuerySettings (\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface $defaultQuerySettings)
 
 createQuery ()
 
 findByIdentifier ($identifier)
 
 __call ($method, $arguments)
 
 getEntityClassName ()
 

Protected Member Functions

 createDomainObject (array $databaseRow)
 
 getFileIndexRepository ()
 
- Protected Member Functions inherited from AbstractRepository
 createDomainObject (array $databaseRow)
 
 getEnvironmentMode ()
 

Protected Attributes

 $objectType = File::class
 
 $table = 'sys_file'
 
- Protected Attributes inherited from AbstractRepository
 $table = ''
 
 $factory
 
 $typeField = ''
 
 $type = ''
 
 $objectType
 

Detailed Description

Repository for accessing files it also serves as the public API for the indexing part of files in general

Definition at line 31 of file FileRepository.php.

Member Function Documentation

createDomainObject ( array  $databaseRow)
protected

Creates an object managed by this repository.

Parameters
array$databaseRow
Returns
File

Definition at line 56 of file FileRepository.php.

findFileReferenceByUid (   $uid)

Find FileReference objects by uid

Parameters
int$uidThe UID of the sys_file_reference record
Returns
FileReference|bool
Exceptions
InvalidArgumentException

Definition at line 147 of file FileRepository.php.

References MathUtility\canBeInterpretedAsInteger().

getFileIndexRepository ( )
protected

Return a file index repository

Returns
FileIndexRepository

Definition at line 194 of file FileRepository.php.

References FileIndexRepository\getInstance().

Member Data Documentation

$objectType = File::class
protected

Definition at line 40 of file FileRepository.php.

$table = 'sys_file'
protected

Definition at line 48 of file FileRepository.php.