TemplateManager

class OC\Files\Template\TemplateManager
Source:lib/private/Files/Template/TemplateManager.php#52
Implements:OCP\Files\Template\ITemplateManager

Properties

Methods

public OC\Files\Template\TemplateManager::__construct($serverContainer, $eventDispatcher, $coordinator, $rootFolder, $userSession, $userManager, $previewManager, $config, $l10nFactory, $logger)
Source:lib/private/Files/Template/TemplateManager.php#72
public OC\Files\Template\TemplateManager::registerTemplateFileCreator($callback)
Source:lib/private/Files/Template/TemplateManager.php#98
public OC\Files\Template\TemplateManager::getRegisteredProviders()
Source:lib/private/Files/Template/TemplateManager.php#102
public OC\Files\Template\TemplateManager::getTypes()
Source:lib/private/Files/Template/TemplateManager.php#117
public OC\Files\Template\TemplateManager::listCreators()
Source:lib/private/Files/Template/TemplateManager.php#127
public OC\Files\Template\TemplateManager::listTemplates()
Source:lib/private/Files/Template/TemplateManager.php#135
public OC\Files\Template\TemplateManager::createFromTemplate($filePath, $templateId="", $templateType=user)
Source:

lib/private/Files/Template/TemplateManager.php#149

Parameters:
  • $filePath (string)
  • $templateId (string)
Returns:

array

Throws:

\OCP\Files\GenericFileException

public OC\Files\Template\TemplateManager::hasTemplateDirectory()
Source:lib/private/Files/Template/TemplateManager.php#246
public OC\Files\Template\TemplateManager::setTemplatePath($path)
Source:lib/private/Files/Template/TemplateManager.php#255
public OC\Files\Template\TemplateManager::getTemplatePath()
Source:lib/private/Files/Template/TemplateManager.php#259
public OC\Files\Template\TemplateManager::initializeTemplateDirectory($path=null, $userId=null, $copyTemplates=true)
Source:lib/private/Files/Template/TemplateManager.php#263