2021-01-12 05:28:04 -05:00
|
|
|
<?php
|
2021-06-04 15:52:51 -04:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-01-12 05:28:04 -05:00
|
|
|
*/
|
|
|
|
|
namespace OCP\Files\Template;
|
|
|
|
|
|
|
|
|
|
use OCP\Files\File;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 21.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface ICustomTemplateProvider {
|
|
|
|
|
/**
|
|
|
|
|
* Return a list of additional templates that the template provider is offering
|
|
|
|
|
*
|
2025-01-15 06:18:29 -05:00
|
|
|
* @return Template[]
|
2021-01-12 05:28:04 -05:00
|
|
|
* @since 21.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getCustomTemplates(string $mimetype): array;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return the file for a given template id
|
|
|
|
|
*
|
|
|
|
|
* @param string $template identifier of the template
|
|
|
|
|
* @return File
|
|
|
|
|
* @since 21.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function getCustomTemplate(string $template): File;
|
|
|
|
|
}
|