Report
class Report extends Model
Traits
Properties
protected ReportGenerator | $reportGenerator | The report generator for this report. |
|
protected array | $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, \Biigle\Project or \Biigle\Video).
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).
Create a new factory instance for the model.
Details
at line 43
BelongsTo
user()
The user that requested the report.
at line 53
BelongsTo
type()
Type of the report.
at line 64
MorphTo
source()
Source of the report (\Biigle\Volume, \Biigle\Project or \Biigle\Video).
at line 74
string
getSourceNameAttribute()
Get the source name dynamically if the source still exists.
at line 88
setReportGenerator(ReportGenerator $generator)
Set the report generator for this model.
at line 98
ReportGenerator
getReportGenerator()
Get the report generator for this report;.
at line 110
generate()
Generate the report file for this report.
at line 126
string
getSubjectAttribute()
Get the subject for this report.
at line 138
string
getNameAttribute()
Get the name for this report.
at line 148
string
getFilenameAttribute()
Get the filename for this report.
at line 158
string
getUrl()
Get the URL to download the report.
at line 166
deleteFile()
Delete the file that belongs to this report.
at line 176
string
getStorageFilename()
Get the filename of the report in storage (not the filename for download).
at line 188
static protected Factory
newFactory()
Create a new factory instance for the model.