lucee.Componentcontentbox.models.ui.ThemeService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Manages system themes
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
cbHelper
|
true
|
false
|
|
any
|
html
|
true
|
false
|
|
any
|
interceptorService
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
moduleService
|
true
|
false
|
|
any
|
moduleSettings
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
|
any
|
themeCFCRegistry
|
true
|
false
|
|
any
|
themeRegistry
|
true
|
false
|
|
any
|
themesIncludePath
|
true
|
false
|
|
any
|
themesInvocationPath
|
true
|
false
|
|
any
|
themesPath
|
true
|
false
|
|
struct
|
widgetCache
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
|
any
|
zipUtil
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
any
|
activateTheme(any themeName)
Activate a theme. |
any
|
buildSettingsForm(query activeTheme)
Build out the settings form HTML. |
query
|
buildThemeRegistry()
Build theme registry. |
query
|
getActiveTheme()
Get active theme record. |
string
|
getCbHelper()
|
string
|
getHtml()
|
string
|
getInterceptorService()
|
string
|
getLog()
|
string
|
getModuleService()
|
string
|
getModuleSettings()
|
struct
|
getSettingsConstraints(any themeName)
Get constraints for setting fields. |
string
|
getSettingService()
|
string
|
getThemeCFCRegistry()
|
string
|
getThemeMaintenanceLayout()
Get the current theme's maintenance layout. |
string
|
getThemePrintLayout(any format, any layout)
Get the current theme's print layouts in ColdBox layout string format. |
query
|
getThemeRecord(any themeName)
Get a theme record from the registry by name. |
string
|
getThemeRegistry()
|
query
|
getThemes()
Get all registered themes. |
string
|
getThemeSearchLayout()
Get the current theme's search layout. |
string
|
getThemesIncludePath()
|
string
|
getThemesInvocationPath()
|
string
|
getThemesPath()
|
string
|
getThemeWidgetPath(string widgetName)
Returns path for the requested widget from themes service's layout cache. |
string
|
getWidgetCache()
|
string
|
getWirebox()
|
string
|
getZipUtil()
|
boolean
|
isActiveTheme(any themeName)
Is active theme check. |
void
|
onDIComplete()
onDIComplete startup the theming services according to loaded module data. |
private any
|
registerThemeSettings(any name, array settings)
Register a theme's settings. |
boolean
|
removeTheme(any themeName)
Remove theme. |
any
|
saveThemeSettings(any name, struct settings)
Save theme settings as they are coming from form submissions as a struct with a common prefix. |
any
|
setCbHelper(any cbHelper)
|
any
|
setHtml(any html)
|
any
|
setInterceptorService(any interceptorService)
|
any
|
setLog(any log)
|
any
|
setModuleService(any moduleService)
|
any
|
setModuleSettings(any moduleSettings)
|
any
|
setSettingService(any settingService)
|
any
|
setThemeCFCRegistry(any themeCFCRegistry)
|
any
|
setThemeRegistry(any themeRegistry)
|
any
|
setThemesIncludePath(any themesIncludePath)
|
any
|
setThemesInvocationPath(any themesInvocationPath)
|
any
|
setThemesPath(any themesPath)
|
any
|
setWidgetCache(struct widgetCache)
|
any
|
setWirebox(any wirebox)
|
any
|
setZipUtil(any zipUtil)
|
any
|
startupActiveTheme()
Startup Active Theme procedures. |
boolean
|
themeMaintenanceViewExists()
Does theme have a maintenance view. |
private any
|
unregisterThemeSettings(array settings)
Unregister theme settings. |
struct
|
uploadTheme(any fileField)
Upload theme. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- provider:CBHelper@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- HTMLHelper@coldboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:interceptorServiceserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- logbox:logger:{this}serializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:moduleServiceserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:setting:modulesserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- id:settingService@cbserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- zipUtil@cbserializable
- trueMethod Detail |
---|
Activate a theme
themeName
- The theme name to activateBuild out the settings form HTML
activeTheme
- The active theme structBuild theme registry
Get active theme record
Get constraints for setting fields
themeName
- The name of the themeGet the current theme's maintenance layout
Get the current theme's print layouts in ColdBox layout string format
format
- export formatlayout
- layout nameGet a theme record from the registry by name
themeName
- The name of the themeGet all registered themes
Get the current theme's search layout
Returns path for the requested widget from themes service's layout cache return String
widgetName
- The name of the widgetIs active theme check
themeName
- The name of the theme to checkonDIComplete startup the theming services according to loaded module data
Register a theme's settings
name
- The theme namesettings
- The settings structRemove theme
themeName
- The theme to removeSave theme settings as they are coming from form submissions as a struct with a common prefix cb_theme_{themeName}_{settingName}
name
- The theme namesettings
- The settings structcbHelper
html
interceptorService
log
moduleService
moduleSettings
settingService
themeCFCRegistry
themeRegistry
themesIncludePath
themesInvocationPath
themesPath
widgetCache
wirebox
zipUtil
Startup Active Theme procedures
Does theme have a maintenance view
Unregister theme settings
settings
- The settings to unregisterUpload theme
fileField
- The file uploaded field