ACreateEmpty
in package
AbstractYes
Tags
Table of Contents
Methods
- create() : void
- Add content when creating empty files
- getExtension() : string
- Default file extension for the new file
- getId() : string
- Unique id for the creator to filter templates
- getMimetype() : string
- Mimetype of the resulting created file
- getName() : string
- Descriptive name for the create action
Methods
create()
Add content when creating empty files
public
create(File $file[, string|null $creatorId = null ][, string|null $templateId = null ]) : void
Parameters
- $file : File
- $creatorId : string|null = null
- $templateId : string|null = null
Tags
getExtension()
Default file extension for the new file
public
abstract getExtension() : string
Tags
Return values
stringgetId()
Unique id for the creator to filter templates
public
abstract getId() : string
e.g. document/spreadsheet/presentation
Tags
Return values
stringgetMimetype()
Mimetype of the resulting created file
public
abstract getMimetype() : string
Tags
Return values
stringgetName()
Descriptive name for the create action
public
abstract getName() : string
e.g Create a new document