class StoreVolumeMetadata extends FormRequest

Traits

Properties

protected array $columnSynonyms

Column name synonyms.

from  ParsesMetadata
protected array $ifdoFieldMap

Maps iFDO field names to BIIGLE metadata CSV fields.

from  ParsesMetadata
Volume $volume

The volume to store the new metadata to.

Methods

array
parseMetadata(string $content)

Parse a metadata CSV string to an array.

array
parseMetadataFile(UploadedFile $file)

Parse metadata from a CSV file to an array.

array
parseIfdo(string $content)

Parse a volume metadata iFDO YAML string to an array.

array
parseIfdoFile(UploadedFile $file)

Parse a volume metadata iFDO YAML file to an array.

array
parseIfdoItems(array $header, array $items)

Parse iFDO image-set-items to a CSV-like metadata array that can be parsed by parseMetadata if converted to a string.

bool
isValidHandle(string $value)

Determine if a value is a valid handle.

bool
authorize()

Determine if the user is authorized to make this request.

array
rules()

Get the validation rules that apply to the request.

void
prepareForValidation()

Prepare the data for validation.

void
withValidator(Validator $validator)

Configure the validator instance.

Details

in ParsesMetadata at line 53
array parseMetadata(string $content)

Parse a metadata CSV string to an array.

Parameters

string $content

Return Value

array

in ParsesMetadata at line 87
array parseMetadataFile(UploadedFile $file)

Parse metadata from a CSV file to an array.

Parameters

UploadedFile $file

Return Value

array

in ParsesMetadata at line 101
array parseIfdo(string $content)

Parse a volume metadata iFDO YAML string to an array.

See: https://marine-imaging.com/fair/ifdos/iFDO-overview/

Parameters

string $content

Return Value

array

in ParsesMetadata at line 172
array parseIfdoFile(UploadedFile $file)

Parse a volume metadata iFDO YAML file to an array.

Parameters

UploadedFile $file

Return Value

array

in ParsesMetadata at line 186
protected array parseIfdoItems(array $header, array $items)

Parse iFDO image-set-items to a CSV-like metadata array that can be parsed by parseMetadata if converted to a string.

Parameters

array $header

iFDO image-set-header

array $items

iFDO image-set-items. Passed by reference so potentially huge arrays are not copied.

Return Value

array

in ParsesMetadata at line 290
protected bool isValidHandle(string $value)

Determine if a value is a valid handle.

Parameters

string $value

Return Value

bool

at line 28
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 38
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 53
protected void prepareForValidation()

Prepare the data for validation.

Return Value

void

at line 75
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void