ACreateEmpty
Tags
Table of Contents
- 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 $creatorId = null ][, string $templateId = null ]) : void
Parameters
- $file : File
- $creatorId : string = null
- $templateId : string = null
Tags
getExtension()
Default file extension for the new file
public
abstract getExtension() : string
Tags
Return values
string —getId()
Unique id for the creator to filter templates
public
abstract getId() : string
e.g. document/spreadsheet/presentation
Tags
Return values
string —getMimetype()
Mimetype of the resulting created file
public
abstract getMimetype() : string
Tags
Return values
string —getName()
Descriptive name for the create action
public
abstract getName() : string
e.g Create a new document