class StoreProjectReport extends StoreReport

Properties

Project $project

The project to generate a new report for.

Methods

array
rules()

Get the validation rules that apply to the request.

void
withValidator(Validator $validator)

Configure the validator instance.

array
getOptions()

Get the options for the new report.

bool
isType(array|int $allowed)

Check if the requested reporty type ID is in the supplied array.

bool
isAllowedForExportArea()

Check if export_area may be configured for the requested report type.

bool
isAllowedForAggregateChildLabels()

Check if aggregate_child_labels may be configured for the requested report type.

bool
isAllowedForStripIfdo()

Check if strip_ifdo may be configured for the requested report type.

bool
authorize()

Determine if the user is authorized to make this request.

validateReportType(Validator $validator)

Validate the report types.

validateGeoInfo(Validator $validator)

Validate the geo info for certain types.

validateImageMetadata(Validator $validator)

Validate image metadata for certain types.

validateIfdos(Validator $validator)

Check if some volumes have iFDO files (if an iFDO report is requested).

Details

at line 36
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 49
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void

in StoreReport at line 64
array getOptions()

Get the options for the new report.

Return Value

array

in StoreReport at line 99
protected bool isType(array|int $allowed)

Check if the requested reporty type ID is in the supplied array.

Parameters

array|int $allowed

Return Value

bool

in StoreReport at line 115
protected bool isAllowedForExportArea()

Check if export_area may be configured for the requested report type.

Return Value

bool

in StoreReport at line 132
protected bool isAllowedForAggregateChildLabels()

Check if aggregate_child_labels may be configured for the requested report type.

Return Value

bool

in StoreReport at line 144
protected bool isAllowedForStripIfdo()

Check if strip_ifdo may be configured for the requested report type.

Return Value

bool

at line 24
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 66
protected validateReportType(Validator $validator)

Validate the report types.

Parameters

Validator $validator

at line 102
protected validateGeoInfo(Validator $validator)

Validate the geo info for certain types.

Parameters

Validator $validator

at line 129
protected validateImageMetadata(Validator $validator)

Validate image metadata for certain types.

Parameters

Validator $validator

at line 160
protected validateIfdos(Validator $validator)

Check if some volumes have iFDO files (if an iFDO report is requested).

Parameters

Validator $validator