class CloneImagesOrVideos extends Job implements ShouldQueue

Traits

InteractsWithQueue
SerializesModels
Queueable
Dispatchable

Properties

Project $project

The target project.

Volume $copy
Volume $volume

The volume to clone.

array $onlyFiles

Array containing file ids.

bool $cloneAnnotations

Boolean for cloning annotation labels.

array $onlyAnnotationLabels

Array containing annotation label ids.

bool $cloneFileLabels

Boolean for cloning file labels.

array $onlyFileLabels

Array containing file label ids.

protected bool $deleteWhenMissingModels

Ignore this job if the project or volume does not exist any more.

Methods

isFilledString($x)

Determine if a value is not null and not an empty string.

void
__construct(CloneVolume|Request $request, $copy)

Create a new job instance.

handle()

No description

void
postProcessCloning(Volume $volume)

Initiate file thumbnail creation

copyImages(Volume $volume, Volume $copy, int[] $selectedImageIds)

Copies (selected) images from given volume to volume copy.

copyImageAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) image annotation and annotation labels from volume to volume copy.

copyImageLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) image labels from given volume to volume copy.

copyVideos(Volume $volume, Volume $copy, int[] $selectedVideoIds)

Copies (selected) videos from given volume to volume copy.

copyVideoAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) video annotations and annotation labels from given volume to volume copy.

copyVideoLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) video labels from volume to volume copy.

copyIfdoFile(int $volumeId, int $copyId)

Copies ifDo-Files from given volume to volume copy.

Details

isFilledString($x)

Determine if a value is not null and not an empty string.

Parameters

$x

at line 97
void __construct(CloneVolume|Request $request, $copy)

Create a new job instance.

Parameters

CloneVolume|Request $request

containing the project, volume, new volume name and ids of files and labels.

$copy

Return Value

void

at line 110
handle()

No description

at line 161
void postProcessCloning(Volume $volume)

Initiate file thumbnail creation

Parameters

Volume $volume

for which thumbnail creation should be started

Return Value

void

at line 195
private copyImages(Volume $volume, Volume $copy, int[] $selectedImageIds)

Copies (selected) images from given volume to volume copy.

Parameters

Volume $volume
Volume $copy
int[] $selectedImageIds

at line 223
private copyImageAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) image annotation and annotation labels from volume to volume copy.

Parameters

Volume $volume
Volume $copy
int[] $selectedFileIds
int[] $selectedLabelIds

at line 303
private copyImageLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) image labels from given volume to volume copy.

Parameters

Volume $volume
Volume $copy
int[] $selectedFileIds
int[] $selectedLabelIds

at line 338
private copyVideos(Volume $volume, Volume $copy, int[] $selectedVideoIds)

Copies (selected) videos from given volume to volume copy.

Parameters

Volume $volume
Volume $copy
int[] $selectedVideoIds

at line 366
private copyVideoAnnotation(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) video annotations and annotation labels from given volume to volume copy.

Parameters

Volume $volume
Volume $copy
int[] $selectedFileIds
int[] $selectedLabelIds

at line 447
private copyVideoLabels(Volume $volume, Volume $copy, int[] $selectedFileIds, int[] $selectedLabelIds)

Copies (selected) video labels from volume to volume copy.

Parameters

Volume $volume
Volume $copy
int[] $selectedFileIds
int[] $selectedLabelIds

at line 481
private copyIfdoFile(int $volumeId, int $copyId)

Copies ifDo-Files from given volume to volume copy.

Parameters

int $volumeId
int $copyId