IEditor¶
- 
interface OCP\DirectEditing\IEditor¶
- Source: - lib/public/DirectEditing/IEditor.php#34 
Methods¶
- 
public OCP\DirectEditing\IEditor::getId()¶
- Return a unique identifier for the editore.g. richdocumentsSource: lib/public/DirectEditing/IEditor.php#44 Since: 18.0.0 Returns: string 
- 
public OCP\DirectEditing\IEditor::getName()¶
- Return a readable name for the editore.g. Collabora OnlineSource: lib/public/DirectEditing/IEditor.php#54 Since: 18.0.0 Returns: string 
- 
public OCP\DirectEditing\IEditor::getMimetypes()¶
- A list of mimetypes that should open the editor by defaultSource: lib/public/DirectEditing/IEditor.php#62 Since: 18.0.0 Returns: string[] 
- 
public OCP\DirectEditing\IEditor::getMimetypesOptional()¶
- A list of mimetypes that can be opened in the editor optionallySource: lib/public/DirectEditing/IEditor.php#70 Since: 18.0.0 Returns: string[] 
- 
public OCP\DirectEditing\IEditor::getCreators()¶
- Return a list of file creation options to be presented to the userSource: lib/public/DirectEditing/IEditor.php#78 Since: 18.0.0 Returns: \OCP\DirectEditing\ACreateFromTemplate[]|\OCP\DirectEditing\ACreateEmpty[]
- 
public OCP\DirectEditing\IEditor::isSecure()¶
- Return if the view is able to securely view a file without downloading it to the browserSource: lib/public/DirectEditing/IEditor.php#86 Since: 18.0.0 Returns: bool 
- 
public OCP\DirectEditing\IEditor::open($token)¶
- Return a template response for displaying the editoropen can only be called once when the client requests the editor with a one-time-use tokenFor handling editing and later requests, editors need to impelement their own token handling and take care of invalidationThis behavior is similar to the current direct editing implementation in collabora where we generate a one-time token and switch over to the regular wopi token for the actual editing/saving processSource: lib/public/DirectEditing/IEditor.php#99 Since: 18.0.0 Returns: \OCP\AppFramework\Http\Response