Cms\Traits\EditorExtensionCrud

EditorExtensionCrud implements CRUD operations for the CMS Editor Extension

Protected methods

protected void canResetFromTemplateFile($template)

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.

Parameters
  • $template

protected void canUpdateTemplateFile($template)

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.

Parameters
  • $template

protected void command_onDeleteDocument()

protected void command_onExpandCmsComponent()

protected void command_onOpenDocument()

protected void command_onSaveDocument()

protected void getThemeDatasource()

getThemeDatasource returns a theme datasource object

protected void makeMetadataForNewTemplate($documentType)

makeMetadataForNewTemplate builds meta data for new templates

Parameters
  • $documentType

protected void resetFromTemplateFile($documentType, $templatePath)

resetFromTemplateFile

Parameters
  • $documentType
  • $templatePath

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

updateTemplateFile

Parameters
  • $template
  • $documentType
  • $templatePath