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(ReportType[]|ReportType $allowed)

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

bool
isAllowedForExportArea()

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

bool
isAllowedForSkipAttributes()

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

bool
isAllowedForAggregateChildLabels()

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

bool
isAllowedForAllLabels()

Check if all_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 37
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 50
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void

in StoreReport at line 68
array getOptions()

Get the options for the new report.

Return Value

array

in StoreReport at line 111
protected bool isType(ReportType[]|ReportType $allowed)

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

Parameters

ReportType[]|ReportType $allowed

Return Value

bool

in StoreReport at line 127
protected bool isAllowedForExportArea()

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

Return Value

bool

in StoreReport at line 144
protected bool isAllowedForSkipAttributes()

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

Return Value

bool

in StoreReport at line 157
protected bool isAllowedForAggregateChildLabels()

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

Return Value

bool

in StoreReport at line 169
protected bool isAllowedForAllLabels()

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

Return Value

bool

in StoreReport at line 181
protected bool isAllowedForStripIfdo()

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

Return Value

bool

at line 25
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 67
protected validateReportType(Validator $validator)

Validate the report types.

Parameters

Validator $validator

at line 103
protected validateGeoInfo(Validator $validator)

Validate the geo info for certain types.

Parameters

Validator $validator

at line 128
protected validateImageMetadata(Validator $validator)

Validate image metadata for certain types.

Parameters

Validator $validator

at line 159
protected validateIfdos(Validator $validator)

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

Parameters

Validator $validator