Report
class Report extends Model
Traits
Properties
protected ReportGenerator | $reportGenerator | The report generator for this report. |
|
protected array<string,string> | $casts | The attributes that should be casted to native types. |
Methods
The user that requested the report.
Type of the report.
Source of the report (\Biigle\Volume or \Biigle\Project).
Get the source name dynamically if the source still exists.
Get the report generator for this report;.
Generate the report file for this report.
Get the subject for this report.
Get the name for this report.
Get the filename for this report.
Get the URL to download the report.
Delete the file that belongs to this report.
Get the filename of the report in storage (not the filename for download).
Details
at line 42
BelongsTo
user()
The user that requested the report.
at line 52
BelongsTo
type()
Type of the report.
at line 62
Project|Volume,$this>
source()
Source of the report (\Biigle\Volume or \Biigle\Project).
at line 75
string
getSourceNameAttribute()
Get the source name dynamically if the source still exists.
at line 89
setReportGenerator(ReportGenerator $generator)
Set the report generator for this model.
at line 99
ReportGenerator
getReportGenerator()
Get the report generator for this report;.
at line 111
generate()
Generate the report file for this report.
at line 127
string
getSubjectAttribute()
Get the subject for this report.
at line 139
string
getNameAttribute()
Get the name for this report.
at line 149
string
getFilenameAttribute()
Get the filename for this report.
at line 159
string
getUrl()
Get the URL to download the report.
at line 167
deleteFile()
Delete the file that belongs to this report.
at line 177
string
getStorageFilename()
Get the filename of the report in storage (not the filename for download).