g
Frontend | Backend | Api

Mailer\Models\Backend\Attachment

Attachment

Method Description Returns
getTemporaryFilesFolder() Gets the path to use for temporary files. If folder doesn't exist -- creates it. Uses [[Environment::CACHE_FOLDER]] and [[Attachment::TEMPORARY_FILES_FOLDER]] for that. string
getTemporaryFilePath() Gets temporary file path. Includes temporary files folder and temporary file name. string
getId() int
getName() string
getBatch() Batch
getFile() File
getTemporaryFileName() string
isNewRecord() Check if the record is a new record bool
isHierarchicalModel() Check whether a model is a hierarchical model, i.e. can have children bool