StoreVolume
class StoreVolume 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 |
Project | $project | The project to attach the new volume to. |
Methods
Parse metadata from a CSV file to an array.
Parse a volume metadata iFDO YAML string to an array.
Parse a volume metadata iFDO YAML file to an array.
Parse iFDO image-set-items to a CSV-like metadata array that can be parsed by
parseMetadata
if converted to a string.
Determine if the user is authorized to make this request.
Get the validation rules that apply to the request.
Configure the validator instance.
Prepare the data for validation.
Details
in
ParsesMetadata at line 53
array
parseMetadata(string $content)
Parse a metadata CSV string to an array.
in
ParsesMetadata at line 87
array
parseMetadataFile(UploadedFile $file)
Parse metadata from a CSV file to an array.
in
ParsesMetadata at line 101
array
parseIfdo(string $content)
Parse a volume metadata iFDO YAML string to an array.
in
ParsesMetadata at line 172
array
parseIfdoFile(UploadedFile $file)
Parse a volume metadata iFDO YAML file to an 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.
in
ParsesMetadata at line 290
protected bool
isValidHandle(string $value)
Determine if a value is a valid handle.
at line 35
bool
authorize()
Determine if the user is authorized to make this request.
at line 47
array
rules()
Get the validation rules that apply to the request.
at line 73
void
withValidator(Validator $validator)
Configure the validator instance.
at line 119
protected void
prepareForValidation()
Prepare the data for validation.