MetadataController
class MetadataController extends Controller
Traits
Methods
Determines if the request was done by an automated script (with API token or ajax).
Redirects to the _redirect URL, to a route or else back.
Determine if a value is not null and not an empty string.
Merge existing video metadata with new metaddata based on timestamps.
Details
in
Controller at line 21
bool
isAutomatedRequest(Request $request = null)
Determines if the request was done by an automated script (with API token or ajax).
in
Controller at line 15
protected RedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
in
ChecksMetadataStrings at line 10
isFilledString($x)
Determine if a value is not null and not an empty string.
at line 59
Response
store(StoreVolumeMetadata $request)
Add or update file metadata for a volume.
at line 83
protected
updateImageMetadata(StoreVolumeMetadata $request)
Update volume metadata for each image.
at line 116
protected
updateVideoMetadata(StoreVolumeMetadata $request)
Update volume metadata for each video.
at line 163
protected Collection
mergeVideoMetadata(Video $video, Collection $rows)
Merge existing video metadata with new metaddata based on timestamps.
Timestamps of existing metadata are extended, even if no new values are provided for the fields. New values are extended with existing timestamps, even if these timestamps are not provided in the new metadata.
at line 253
protected bool
hasMetadata(Video $video)
Determine if a video has any metadata.