TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Resource\ProcessedFileRepository Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\ProcessedFileRepository:
TYPO3\CMS\Core\Resource\AbstractRepository TYPO3\CMS\Extbase\Persistence\RepositoryInterface TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct ()
 
 createNewProcessedFileObject (FileInterface $originalFile, $taskType, array $configuration)
 
 findByStorageAndIdentifier (ResourceStorage $storage, $identifier)
 
 add ($processedFile)
 
 update ($processedFile)
 
 findOneByOriginalFileAndTaskTypeAndConfiguration (FileInterface $file, $taskType, array $configuration)
 
 findAllByOriginalFile (FileInterface $file)
 
 removeAll ($storageUid=NULL)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Resource\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)
 
 cleanUnavailableColumns (array $data)
 
 getLogger ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Resource\AbstractRepository
 createDomainObject (array $databaseRow)
 
 getWhereClauseForEnabledFields ()
 
 getEnvironmentMode ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $objectType = 'TYPO3\\CMS\\Core\\Resource\\ProcessedFile'
 
 $table = 'sys_file_processedfile'
 
 $resourceFactory
 
 $databaseConnection
 
- Protected Attributes inherited from TYPO3\CMS\Core\Resource\AbstractRepository
 $table = ''
 
 $factory
 
 $typeField = ''
 
 $type = ''
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Repository for accessing files it also serves as the public API for the indexing part of files in general

Author
Benjamin Mack benni.nosp@m.@typ.nosp@m.o3.or.nosp@m.g
Ingmar Schlecht ingma.nosp@m.r@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 25 of file ProcessedFileRepository.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::__construct ( )

Creates this object.

Definition at line 57 of file ProcessedFileRepository.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Function Documentation

◆ add()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::add (   $processedFile)

◆ cleanUnavailableColumns()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::cleanUnavailableColumns ( array  $data)
protected

Removes all array keys which cannot be persisted

Parameters
array$data
Returns
array

Definition at line 241 of file ProcessedFileRepository.php.

Referenced by TYPO3\CMS\Core\Resource\ProcessedFileRepository\add(), and TYPO3\CMS\Core\Resource\ProcessedFileRepository\update().

◆ createDomainObject()

◆ createNewProcessedFileObject()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::createNewProcessedFileObject ( FileInterface  $originalFile,
  $taskType,
array  $configuration 
)

Creates a ProcessedFile object from a file object and a processing configuration

Parameters
FileInterface$originalFile
string$taskType
array$configuration
Returns
ProcessedFile

Definition at line 70 of file ProcessedFileRepository.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Core\Resource\ProcessedFileRepository\findOneByOriginalFileAndTaskTypeAndConfiguration().

◆ findAllByOriginalFile()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::findAllByOriginalFile ( FileInterface  $file)

◆ findByStorageAndIdentifier()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::findByStorageAndIdentifier ( ResourceStorage  $storage,
  $identifier 
)

◆ findOneByOriginalFileAndTaskTypeAndConfiguration()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::findOneByOriginalFileAndTaskTypeAndConfiguration ( FileInterface  $file,
  $taskType,
array  $configuration 
)
Parameters
\TYPO3\CMS\Core\Resource\File | \TYPO3\CMS\Core\Resource\FileInterface$file
string$taskTypeThe task that should be executed on the file
array$configuration
Returns
ProcessedFile

Definition at line 160 of file ProcessedFileRepository.php.

References TYPO3\CMS\Core\Resource\ProcessedFileRepository\createDomainObject(), and TYPO3\CMS\Core\Resource\ProcessedFileRepository\createNewProcessedFileObject().

◆ getLogger()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::getLogger ( )
protected

◆ removeAll()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::removeAll (   $storageUid = NULL)

Removes all processed files and also deletes the associated physical files

Parameters
int | NULL$storageUidIf not NULL, only the processed files of the given storage are removed
Returns
int Number of failed deletions

Definition at line 205 of file ProcessedFileRepository.php.

References TYPO3\CMS\Core\Resource\ProcessedFileRepository\createDomainObject(), and TYPO3\CMS\Core\Resource\ProcessedFileRepository\getLogger().

◆ update()

TYPO3\CMS\Core\Resource\ProcessedFileRepository::update (   $processedFile)

Updates an existing file object in the database

Parameters
ProcessedFile$processedFile
Returns
void

Implements TYPO3\CMS\Extbase\Persistence\RepositoryInterface.

Definition at line 144 of file ProcessedFileRepository.php.

References $uid, and TYPO3\CMS\Core\Resource\ProcessedFileRepository\cleanUnavailableColumns().

Referenced by TYPO3\CMS\Core\Resource\ProcessedFileRepository\add().

Member Data Documentation

◆ $databaseConnection

TYPO3\CMS\Core\Resource\ProcessedFileRepository::$databaseConnection
protected

Definition at line 52 of file ProcessedFileRepository.php.

◆ $objectType

TYPO3\CMS\Core\Resource\ProcessedFileRepository::$objectType = 'TYPO3\\CMS\\Core\\Resource\\ProcessedFile'
protected

Definition at line 34 of file ProcessedFileRepository.php.

◆ $resourceFactory

TYPO3\CMS\Core\Resource\ProcessedFileRepository::$resourceFactory
protected

Definition at line 47 of file ProcessedFileRepository.php.

◆ $table

TYPO3\CMS\Core\Resource\ProcessedFileRepository::$table = 'sys_file_processedfile'
protected

Definition at line 42 of file ProcessedFileRepository.php.