class Rescanner (View source)

Properties

protected ProcessorManager $processorManager
protected Application $app

Methods

__construct(ProcessorManager $processorManager, Application $app)

No description

rescanFile(File $file)

Rescan the currently approved version of a file.

rescanFileVersion(Version $fileVersion)

Rescan a specific version of a file.

void
refreshAttributes(Version $fileVersion)

No description

applyPreProcessors(Version $fileVersion)

No description

createImportingFile(VolatileDirectory $volatileDirectory, Version $fileVersion)

No description

void
rescanThumbnails(Version $fileVersion)

No description

Details

__construct(ProcessorManager $processorManager, Application $app)

No description

Parameters

ProcessorManager $processorManager
Application $app

Version rescanFile(File $file)

Rescan the currently approved version of a file.

Parameters

File $file

Return Value

Version

The processed file version (it's the currently approved version, or a new version created if needed)

Exceptions

UserMessageException

Version rescanFileVersion(Version $fileVersion)

Rescan a specific version of a file.

Parameters

Version $fileVersion

Return Value

Version

The processed file version (may be $fileVersion or a a newly created version)

Exceptions

UserMessageException

protected void refreshAttributes(Version $fileVersion)

No description

Parameters

Version $fileVersion

Return Value

void

Exceptions

UserMessageException

protected Version applyPreProcessors(Version $fileVersion)

No description

Parameters

Version $fileVersion

Return Value

Version

protected ImportingFile createImportingFile(VolatileDirectory $volatileDirectory, Version $fileVersion)

No description

Parameters

VolatileDirectory $volatileDirectory
Version $fileVersion

Return Value

ImportingFile

protected void rescanThumbnails(Version $fileVersion)

No description

Parameters

Version $fileVersion

Return Value

void