ACreateEmpty

class OCP\DirectEditing\ACreateEmpty
Source:lib/public/DirectEditing/ACreateEmpty.php#31

Methods

public abstract OCP\DirectEditing\ACreateEmpty::getId()
Unique id for the creator to filter templates
e.g. document/spreadsheet/presentation
Source:lib/public/DirectEditing/ACreateEmpty.php#41
Since:18.0.0
Returns:string
public abstract OCP\DirectEditing\ACreateEmpty::getName()
Descriptive name for the create action
e.g Create a new document
Source:lib/public/DirectEditing/ACreateEmpty.php#51
Since:18.0.0
Returns:string
public abstract OCP\DirectEditing\ACreateEmpty::getExtension()
Default file extension for the new file
Source:lib/public/DirectEditing/ACreateEmpty.php#59
Since:18.0.0
Returns:string
public abstract OCP\DirectEditing\ACreateEmpty::getMimetype()
Mimetype of the resulting created file
Source:lib/public/DirectEditing/ACreateEmpty.php#67
Since:18.0.0
Returns:string
public OCP\DirectEditing\ACreateEmpty::create($file, $creatorId=null, $templateId=null)
Add content when creating empty files
Source:

lib/public/DirectEditing/ACreateEmpty.php#75

Parameters:
Since:

18.0.0