-
Backend
-
Behaviors
-
FormController
-
ImportExportController
-
ListController
-
RelationController
- FormController
- ImportExportController
- ListController
- RelationController
- ReorderController
- UserPreferencesModel
-
-
Classes
-
Dashboard
-
NavigationManager
-
WidgetManager
- AuthManager
- BackendController
- Controller
- ControllerBehavior
- DashboardManager
- DashboardWidgetBase
- FilterScope
- FilterWidgetBase
- FormField
- FormTabs
- FormWidgetBase
- ListColumn
- LoginCustomization
- MainMenuItem
- NavigationManager
- ReportDataSourceBase
- ReportDataSourceManager
- ReportWidgetBase
- RoleManager
- RolePermission
- SettingsController
- SideMenuItem
- Skin
- StaticReportWidgetContainer
- VueComponentBase
- WidgetBase
- WidgetManager
- WildcardController
-
-
Controllers
-
Database
-
Facades
-
FilterWidgets
-
FormWidgets
-
Helpers
-
Models
-
BrandSetting
-
ExportModel
-
ImportModel
- AccessLog
- BrandSetting
- Dashboard
- EditorSetting
- ExportModel
- ImportModel
- Preference
- ReportDataCache
- User
- UserGroup
- UserPreference
- UserPreferenceModel
- UserRole
- UserThrottle
-
-
ReportWidgets
-
Skins
-
Traits
-
VueComponents
-
Widgets
-
Filter
-
Form
-
Lists
-
Table
- Filter
- Form
- Lists
- ListStructure
- ReportContainer
- RoleImpersonator
- Search
- SiteSwitcher
- Table
- Toolbar
-
- ServiceProvider
-
-
Cms
-
Classes
-
Controller
-
EditorExtension
-
Layout
-
Page
-
Partial
-
Theme
- AjaxResponse
- Asset
- CmsCompoundObject
- CmsController
- CmsDemoTrafficDataGenerator
- CmsException
- CmsObject
- CmsObjectCache
- CmsObjectCollection
- CmsReportDataSource
- CmsStatusDataSource
- CodeBase
- CodeParser
- ComponentBase
- ComponentBehavior
- ComponentHelpers
- ComponentManager
- ComponentModuleBase
- ComponentPartial
- Content
- Controller
- EditorExtension
- Layout
- LayoutCode
- Meta
- Page
- PageCode
- PageManager
- Partial
- PartialCode
- PartialStack
- PartialWatcher
- Router
- Snippet
- SnippetManager
- Theme
- ThemeManager
- ThisVariable
- TrafficLogger
-
-
Components
-
Console
-
Controllers
-
Database
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- AjaxPartialTokenParser
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- GetAttrAdjuster
- GetAttrNode
- Loader
- MetaNode
- MetaTokenParser
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
VueComponents
-
Widgets
- ServiceProvider
-
-
Editor
-
Behaviors
-
Classes
-
Controllers
-
Traits
-
VueComponents
- ServiceProvider
-
-
Media
-
Classes
-
Controllers
-
FormWidgets
-
Helpers
-
Twig
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
PresetManager
-
SiteManager
-
UiManager
-
UpdateManager
- AppBase
- CombineAssets
- DependencyResolver
- DriverBehavior
- ErrorHandler
- MailManager
- ManifestCache
- MarkupExtensionItem
- MarkupManager
- ModelBehavior
- PagerElement
- PluginBase
- PluginManager
- PresetManager
- ProductDetail
- RateLimiter
- ResizeImageItem
- ResizeImages
- SettingsManager
- SettingsMenuItem
- SiteManager
- SystemController
- SystemReportDataSource
- UiElement
- UiManager
- UpdateManager
- VersionManager
-
-
Console
- ComposerScript
- OctoberAbout
- OctoberDown
- OctoberFresh
- OctoberMigrate
- OctoberMirror
- OctoberOptimize
- OctoberPasswd
- OctoberUp
- OctoberUpdate
- OctoberUtil
- OctoberUtilCommands
- OctoberUtilPatches
- OctoberUtilRefitLang
- PluginCheck
- PluginDisable
- PluginEnable
- PluginInstall
- PluginList
- PluginRefresh
- PluginRemove
- PluginSeed
- PluginTest
- ProjectSync
-
Controllers
-
Database
-
Facades
-
Helpers
-
Middleware
-
Models
-
ReportWidgets
-
Traits
-
Twig
-
Widgets
- ServiceProvider
-
-
Tailor
-
Behaviors
-
Classes
-
Blueprint
-
BlueprintIndexer
-
EditorExtension
-
Relations
-
SchemaBuilder
-
Scopes
- Blueprint
- BlueprintCollection
- BlueprintErrorData
- BlueprintException
- BlueprintIndexer
- BlueprintModel
- BlueprintVerifier
- ComponentVariable
- ContentFieldBase
- EditorExtension
- FieldManager
- Fieldset
- NavigationItem
- PermissionItem
- RecordIndexer
- SchemaBuilder
- SchemaPruner
-
-
Components
-
Console
-
ContentFields
-
Controllers
-
Models
-
EntryRecord
-
GlobalRecord
-
RecordImport
- ContentSchema
- EntryRecord
- GlobalRecord
- NestedFormItem
- PreviewToken
- RecordExport
- RecordImport
- RepeaterItem
-
-
Traits
-
VueComponents
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
brand
-
files
-
filter
-
form
-
list
-
menu
-
page
-
roles
-
site
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
internalTrafficStatistics
-
object
-
page
-
pageLookup
-
resizer
-
router
-
sitePicker
-
template
-
theme
- extendTwig
-
-
deferredBinding
-
editor
-
extension
-
-
exception
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
auth
-
filter
-
form
-
relation
-
/docs/api/model/relation/add
-
/docs/api/model/relation/associate
- attach
-
/docs/api/model/relation/beforeadd
-
/docs/api/model/relation/beforeassociate
- beforeAttach
- beforeDetach
-
/docs/api/model/relation/beforedissociate
-
/docs/api/model/relation/beforeremove
- detach
-
/docs/api/model/relation/dissociate
-
/docs/api/model/relation/remove
-
-
/docs/api/model/afterboot
-
/docs/api/model/aftercreate
-
/docs/api/model/afterdelete
-
/docs/api/model/afterfetch
-
/docs/api/model/afterinit
- afterRelation
- afterRestore
-
/docs/api/model/aftersave
- afterTrash
-
/docs/api/model/afterupdate
- afterValidate
-
/docs/api/model/beforecreate
-
/docs/api/model/beforedelete
-
/docs/api/model/beforefetch
- beforeGetAttribute
- beforeRelation
- beforeReplicate
- beforeRestore
-
/docs/api/model/beforesave
- beforeSetAttribute
-
/docs/api/model/beforeupdate
- beforeValidate
- extendBlueprint
- getAttribute
- newInstance
- saveInternal
- setAttribute
-
-
pages
-
snippet
-
-
site
-
system
-
assets
- beforeAddAsset
-
/docs/api/system/assets/beforebundleasset
-
console
-
mirror
-
-
mail
-
reportwidgets
-
resizer
-
settings
-
site
-
updater
- extendConfigFile
- extendTwig
-
-
tailor
-
user
-
-
Library
-
Argon
-
Assetic
-
Asset
-
Cache
-
Exception
-
Factory
-
Filter
-
Traits
-
Util
- README
- AsseticServiceProvider
- AssetManager
- AssetWriter
- Combiner
- FilterManager
-
-
Auth
-
Combine
-
Composer
-
Config
-
Database
-
Attach
-
Concerns
-
Connections
-
Connectors
-
Factories
-
Models
-
Relations
-
Schema
-
Scopes
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- Dongle
- ExpandoModel
- MigrationServiceProvider
- Model
- ModelBehavior
- ModelException
- MorphPivot
- NestedTreeScope
- Pivot
- QueryBuilder
- Replicator
- SortableScope
- TreeCollection
- Updater
-
-
Element
-
Filter
-
Form
-
Lists
-
Navigation
- ElementBase
- ElementHolder
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
-
-
Halcyon
-
Concerns
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Resize
-
Router
-
Scaffold
-
Support
-
Debug
-
Facades
-
Traits
- README
- Arr
- ClassLoader
- Collection
- Facade
- ModuleServiceProvider
- SafeCollection
- ServiceProvider
- Singleton
- Str
-
-
Translation
-
Validation
-
- Documentation
- API
- Cms
- Classes
- EditorExtension
Cms\Classes\EditorExtension
Overview
EditorExtension adds CMS objects to October Editor IDE
Extends
Protected Properties
protected bool $cachedEditTheme
Show inherited protected properties
Inherited Protected Properties
- $emitterSingleEventCollection - of events to be fired once only. (defined in Editor\Classes\ExtensionBase)
- $emitterEventCollection - of all registered events. (defined in Editor\Classes\ExtensionBase)
- $emitterEventSorted - collection. (defined in Editor\Classes\ExtensionBase)
Public Methods
public getAssetsPath()
public getAssetsPath($theme $theme = null): string
getAssetsPath returns the asset path for a theme
public getClientSideLangStrings()
public getClientSideLangStrings(): array
Returns a list of language strings required by the client-side extension controller.
public getCustomData()
public getCustomData(): array
getCustomData returns custom state data required for the extension client-side controller
public getNamespace()
public getNamespace(): string
getNamespace returns unique extension namespace
public getNewDocumentsData()
public getNewDocumentsData(): array
public getSettingsForms()
public getSettingsForms(): array
public static hasAccessToDocType()
public static hasAccessToDocType($user, $documentType): array
public listJsFiles()
public listJsFiles(): array
Returns a list of JavaScript files required for the extension.
public listNavigatorSections()
public listNavigatorSections($sectionList, $documentType = null): void
Initializes extension's sidebar Navigator sections.
public listVueComponents()
public listVueComponents(): array
Returns a list of Vue components required for the extension.
Inherited Public Methods
- bindEvent() - creates a new event binding. (defined in Editor\Classes\ExtensionBase)
- bindEventOnce() - creates a new event binding that fires once only. (defined in Editor\Classes\ExtensionBase)
- fireEvent() - and call the listeners. (defined in Editor\Classes\ExtensionBase)
- fireSystemEvent() - fires a combination of local and global events. The first segment is removed. (defined in Editor\Classes\ExtensionBase)
- fireViewEvent() - is a special event function used for extending within view files, (defined in Editor\Classes\ExtensionBase)
- getExtensionSortOrder() - affects the extension position in the Editor Navigator. (defined in Editor\Classes\ExtensionBase)
- getNamespaceNormalized() - (defined in Editor\Classes\ExtensionBase)
- listInspectorConfigurations() - returns a list of Inspector configurations that must. (defined in Editor\Classes\ExtensionBase)
- runCommand() - handles client-side requests. (defined in Editor\Classes\ExtensionBase)
- unbindEvent() - destroys an event binding. (defined in Editor\Classes\ExtensionBase)
Protected Methods
protected addAssetsNavigatorNodes()
protected addAssetsNavigatorNodes($theme, $rootNode): void
protected addDirectoryAssetsNodes()
protected addDirectoryAssetsNodes($path, $parentNode, $theme): void
protected assertCmsThemeExists()
protected assertCmsThemeExists($themeDir): void
assertCmsThemeExists ensures a theme directory exists
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_onAssetCreateDirectory()
protected command_onAssetCreateDirectory(): void
protected command_onAssetDelete()
protected command_onAssetDelete(): void
protected command_onAssetMove()
protected command_onAssetMove(): void
protected command_onAssetRename()
protected command_onAssetRename(): void
protected command_onAssetUpload()
protected command_onAssetUpload(): void
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 command_onSetEditTheme()
protected command_onSetEditTheme(): void
command_onSetEditTheme sets the editing theme for the user
protected getAssetExtensionListInitialState()
protected getAssetExtensionListInitialState(): void
protected getAssetFullPath()
protected getAssetFullPath($path $path): string
getAssetFullPath returns the full path for the current theme
protected getCmsAssetNewDocumentData()
protected getCmsAssetNewDocumentData(): void
protected getTemplateToolbarCustomSettingsButtons()
protected getTemplateToolbarCustomSettingsButtons($entityName): void
protected getTheme()
protected getTheme(): void
getTheme returns the theme object to use for the editor
protected getThemeDatasource()
protected getThemeDatasource(): void
getThemeDatasource returns a theme datasource object
protected getToolbarCustomSettingsButtons()
protected getToolbarCustomSettingsButtons(): void
protected handleEmptyValuesOnLoad()
protected handleEmptyValuesOnLoad($template, $templateData): void
protected handleEmptyValuesOnSave()
protected handleEmptyValuesOnSave($template, $templateData): void
protected handleLineEndings()
protected handleLineEndings($templateData): void
protected intellisenseLoadOctoberTags()
protected intellisenseLoadOctoberTags(): void
protected intellisenseLoadTwigFilters()
protected intellisenseLoadTwigFilters(): void
protected loadAndExtendCmsSettingsFields()
protected loadAndExtendCmsSettingsFields($fieldsClass, $entityName): void
protected loadAssetsForUiLists()
protected loadAssetsForUiLists($theme, $user): void
protected loadCustomSettingsButtons()
protected loadCustomSettingsButtons($fieldsClass): array
See Also
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
Show inherited protected methods
Inherited Protected Methods
- editorCreateDirectory() - (defined in Editor\Classes\ExtensionBase)
- editorDeleteFileOrDirectory() - (defined in Editor\Classes\ExtensionBase)
- editorMoveFilesOrDirectories() - (defined in Editor\Classes\ExtensionBase)
- editorRenameFileOrDirectory() - (defined in Editor\Classes\ExtensionBase)
- editorUploadFiles() - (defined in Editor\Classes\ExtensionBase)
- emitterEventSortEvents() - sorts the listeners for a given event by priority. (defined in Editor\Classes\ExtensionBase)
- loadAndLocalizeJsonFile() - (defined in Editor\Classes\ExtensionBase)
- loadSettingsFields() - (defined in Editor\Classes\ExtensionBase)