CreateNewImagesOrVideos
class CreateNewImagesOrVideos extends Job implements ShouldQueue
Traits
Properties
Volume | $volume | The volume to create the files for. |
|
array | $filenames | The filenames of the files to create. |
|
array | $metadata | Metadata of the files to add during creation. |
Methods
Determine if a value is not null and not an empty string.
Execute the job.
Create an array to be inserted as new image or video models.
Generate a map for image metadata that is indexed by filename.
Generate a map for video metadata that is indexed by filename.
Generate the metadata map entry for a single video file.
Details
in
ChecksMetadataStrings at line 10
isFilledString($x)
Determine if a value is not null and not an empty string.
at line 52
void
__construct(Volume $volume, array $filenames, array $metadata = [])
Create a new job instance.
at line 65
handle()
Execute the job.
at line 117
protected array
createFiles(array $filenames, Collection $metadataMap)
Create an array to be inserted as new image or video models.
at line 150
protected Collection
generateImageMetadataMap()
Generate a map for image metadata that is indexed by filename.
at line 181
protected Collection
generateVideoMetadataMap()
Generate a map for video metadata that is indexed by filename.
at line 219
protected Collection
processVideoColumns(Collection $entries, Collection $columns)
Generate the metadata map entry for a single video file.