TYPO3
7.6
|
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 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 AbstractRepository | |
createDomainObject (array $databaseRow) | |
getWhereClauseForEnabledFields () | |
getEnvironmentMode () | |
getDatabaseConnection () | |
Protected Attributes | |
$objectType = ProcessedFile::class | |
$table = 'sys_file_processedfile' | |
$resourceFactory | |
$databaseConnection | |
Protected Attributes inherited from AbstractRepository | |
$table = '' | |
$factory | |
$typeField = '' | |
$type = '' | |
Repository for accessing files it also serves as the public API for the indexing part of files in general
Definition at line 24 of file ProcessedFileRepository.php.
__construct | ( | ) |
Creates this object.
Definition at line 56 of file ProcessedFileRepository.php.
References $GLOBALS, and GeneralUtility\makeInstance().
add | ( | $processedFile | ) |
Adds a processedfile object in the database
ProcessedFile | $processedFile |
Implements RepositoryInterface.
Definition at line 128 of file ProcessedFileRepository.php.
References ProcessedFileRepository\cleanUnavailableColumns(), and ProcessedFileRepository\update().
|
protected |
Removes all array keys which cannot be persisted
array | $data |
Definition at line 249 of file ProcessedFileRepository.php.
Referenced by ProcessedFileRepository\add(), and ProcessedFileRepository\update().
|
protected |
array | $databaseRow |
Definition at line 84 of file ProcessedFileRepository.php.
References GeneralUtility\makeInstance().
Referenced by ProcessedFileRepository\findAllByOriginalFile(), ProcessedFileRepository\findByStorageAndIdentifier(), ProcessedFileRepository\findOneByOriginalFileAndTaskTypeAndConfiguration(), and ProcessedFileRepository\removeAll().
createNewProcessedFileObject | ( | FileInterface | $originalFile, |
$taskType, | |||
array | $configuration | ||
) |
Creates a ProcessedFile object from a file object and a processing configuration
FileInterface | $originalFile | |
string | $taskType | |
array | $configuration |
Definition at line 70 of file ProcessedFileRepository.php.
References GeneralUtility\makeInstance().
Referenced by ProcessedFileRepository\findOneByOriginalFileAndTaskTypeAndConfiguration().
findAllByOriginalFile | ( | FileInterface | $file | ) |
FileInterface | $file |
\InvalidArgumentException |
Definition at line 188 of file ProcessedFileRepository.php.
References ProcessedFileRepository\createDomainObject().
findByStorageAndIdentifier | ( | ResourceStorage | $storage, |
$identifier | |||
) |
ResourceStorage | $storage | |
string | $identifier |
Definition at line 106 of file ProcessedFileRepository.php.
References ProcessedFileRepository\createDomainObject(), ResourceStorage\getUid(), and ResourceStorage\hasFile().
findOneByOriginalFileAndTaskTypeAndConfiguration | ( | FileInterface | $file, |
$taskType, | |||
array | $configuration | ||
) |
\TYPO3\CMS\Core\Resource\File | \TYPO3\CMS\Core\Resource\FileInterface | $file | |
string | $taskType | The task that should be executed on the file |
array | $configuration |
Definition at line 165 of file ProcessedFileRepository.php.
References ProcessedFileRepository\createDomainObject(), and ProcessedFileRepository\createNewProcessedFileObject().
|
protected |
Definition at line 257 of file ProcessedFileRepository.php.
References GeneralUtility\makeInstance().
Referenced by ProcessedFileRepository\removeAll().
removeAll | ( | $storageUid = null | ) |
Removes all processed files and also deletes the associated physical files
int | NULL | $storageUid | If not NULL, only the processed files of the given storage are removed |
Definition at line 212 of file ProcessedFileRepository.php.
References ProcessedFileRepository\createDomainObject(), and ProcessedFileRepository\getLogger().
update | ( | $processedFile | ) |
Updates an existing file object in the database
ProcessedFile | $processedFile |
Implements RepositoryInterface.
Definition at line 148 of file ProcessedFileRepository.php.
References ProcessedFileRepository\cleanUnavailableColumns().
Referenced by ProcessedFileRepository\add().
|
protected |
Definition at line 51 of file ProcessedFileRepository.php.
|
protected |
Definition at line 33 of file ProcessedFileRepository.php.
|
protected |
Definition at line 46 of file ProcessedFileRepository.php.
|
protected |
Definition at line 41 of file ProcessedFileRepository.php.