class Report extendsModel

Properties

protectedReportGenerator $reportGenerator The report generator for this report.
protectedarray $casts The attributes that should be casted to native types.

Methods

BelongsTo
user()

The user that requested the report.

BelongsTo
type()

Type of the report.

MorphTo
source()

Source of the report (\Biigle\Volume, \Biigle\Project or \Biigle\Modules\Videos\Video).

string
getSourceNameAttribute()

Get the source name dynamically if the source still exists.

setReportGenerator(ReportGenerator$generator)

Set the report generator for this model.

getReportGenerator()

Get the report generator for this report;.

generate()

Generate the report file for this report.

string
getSubjectAttribute()

Get the subject for this report.

string
getNameAttribute()

Get the name for this report.

string
getFilenameAttribute()

Get the filename for this report.

string
getUrl()

Get the URL to download the report.

deleteFile()

Delete the file that belongs to this report.

Details

at line39
BelongsTo user()

The user that requested the report.

Return Value

BelongsTo

at line49
BelongsTo type()

Type of the report.

Return Value

BelongsTo

at line60
MorphTo source()

Source of the report (\Biigle\Volume, \Biigle\Project or \Biigle\Modules\Videos\Video).

Return Value

MorphTo

at line70
string getSourceNameAttribute()

Get the source name dynamically if the source still exists.

Return Value

string

at line84
setReportGenerator(ReportGenerator$generator)

Set the report generator for this model.

Parameters

ReportGenerator $generator

at line94
ReportGenerator getReportGenerator()

Get the report generator for this report;.

Return Value

ReportGenerator

at line106
generate()

Generate the report file for this report.

at line122
string getSubjectAttribute()

Get the subject for this report.

Return Value

string

at line134
string getNameAttribute()

Get the name for this report.

Return Value

string

at line144
string getFilenameAttribute()

Get the filename for this report.

Return Value

string

at line154
string getUrl()

Get the URL to download the report.

Return Value

string

at line162
deleteFile()

Delete the file that belongs to this report.