Cms\Classes\EditorExtension\HasExtensionCrud

Overview

HasExtensionCrud implements CRUD operations for the CMS Editor Extension


Protected Methods

protected canResetFromTemplateFile()

protected canResetFromTemplateFile($template): bool 

canResetFromTemplateFile returns true if the database template can be reloaded from the template file. Only available when the database templates are enabled, and the template exists in both the database and filesystem.

protected canUpdateTemplateFile()

protected canUpdateTemplateFile($template): bool 

canUpdateTemplateFile returns true if the template file can be updated with the database content. Only available in debug mode, the database templates must be enabled, and the template must exist in the database.

protected command_onDeleteDocument()

protected command_onDeleteDocument(): void

protected command_onExpandCmsComponent()

protected command_onExpandCmsComponent(): void

protected command_onOpenDocument()

protected command_onOpenDocument(): void

protected command_onSaveDocument()

protected command_onSaveDocument(): void

protected getThemeDatasource()

protected getThemeDatasource(): void

getThemeDatasource returns a theme datasource object

protected handleEmptyValuesOnLoad()

protected handleEmptyValuesOnLoad($template, $templateData): void

protected handleEmptyValuesOnSave()

protected handleEmptyValuesOnSave($template, $templateData): void

protected handleLineEndings()

protected handleLineEndings($templateData): void

protected makeMetadataForNewTemplate()

protected makeMetadataForNewTemplate($documentType): array 

makeMetadataForNewTemplate builds meta data for new templates

protected resetFromTemplateFile()

protected resetFromTemplateFile($documentType, $templatePath): void

protected updateTemplateFile()

protected updateTemplateFile($template, $documentType, $templatePath): void