26 parent::initializeAttributes();
28 $this->attributes[
'subtype'] =
'temp_file';
74 public function save(): bool {
75 throw new IOException(
"Temp files can't be saved to the database");
initializeAttributes()
Set subtype to 'temp_file'.
This class represents a physical file (by default in the system temp directory).
canDownload(int $user_guid=0, bool $default=false)
{}
An IO Exception, throw when an IO Exception occurs.
setFilename(string $filename)
Set the filename of this file.
transfer(int $owner_guid, string $filename=null)
{}
getFilestore()
Return the system temp filestore based on the system temp directory.
_elgg_services()
Get the global service provider.
getDownloadURL(bool $use_cookie=true, string $expires= '+2 hours')
{}
getInlineURL(bool $use_cookie=false, string $expires= '')
{}