railo-context.Component
contentbox.model.ui.WidgetService
ContentBox - A Modular Content Platform Copyright 2012 by Luis Majano and Ortus Solutions, Corp www.gocontentbox.org | www.luismajano.com | www.ortussolutions.com Apache License, Version 2.0 Copyright Since [2012] [Luis Majano and Ortus Solutions,Corp] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| Property Summary | ||||
|---|---|---|---|---|
| type | property | default | serializable | required |
any
|
coldbox
|
true
|
false
|
|
any
|
layoutService
|
true
|
false
|
|
any
|
log
|
true
|
false
|
|
any
|
moduleService
|
true
|
false
|
|
any
|
moduleSettings
|
true
|
false
|
|
any
|
settingService
|
true
|
false
|
|
string
|
widgetsIconsIncludePath
|
true
|
false
|
|
string
|
widgetsIconsPath
|
true
|
false
|
|
string
|
widgetsPath
|
true
|
false
|
|
| Constructor Summary | |
|---|---|
|
init()
|
|
| Method Summary | |
|---|---|
WidgetService
|
createNewWidget(Widget widget)
Create new core widget. |
string
|
getColdbox()
|
string
|
getLayoutService()
|
string
|
getLog()
|
string
|
getModuleService()
|
string
|
getModuleSettings()
|
string
|
getSettingService()
|
any
|
getWidget(any name, string type='core')
Get a widget by name. |
query
|
getWidgetCategories()
Get unique, sorted widget categories from main widget query. |
string
|
getWidgetCategory(any name, string type='core')
|
string
|
getWidgetCode(string name, string type)
Get widget code. |
string
|
getWidgetFilePath(string name, string type)
Gets widget file path by name and type. |
string
|
getWidgetIcon(any name, string type='core')
|
array
|
getWidgetIcons()
Get a list of widget icons available in the system. |
any
|
getWidgetRenderArgs([any udf], [any widget], [any type])
|
query
|
getWidgets()
Get installed widgets. |
string
|
getWidgetsIconsIncludePath()
|
string
|
getWidgetsIconsPath()
|
string
|
getWidgetsList()
Get installed widgets as a list of names. |
string
|
getWidgetsPath()
|
any
|
onDIComplete()
onDIComplete. |
boolean
|
removeWidget(any widgetFile)
Remove widget. |
string
|
ripExtension(any filename)
|
WidgetService
|
saveWidgetCode(string name, string code, string type)
Save widget code. |
any
|
setColdbox(any coldbox)
|
any
|
setLayoutService(any layoutService)
|
any
|
setLog(any log)
|
any
|
setModuleService(any moduleService)
|
any
|
setModuleSettings(any moduleSettings)
|
any
|
setSettingService(any settingService)
|
any
|
setWidgetsIconsIncludePath(string widgetsIconsIncludePath)
|
any
|
setWidgetsIconsPath(string widgetsIconsPath)
|
any
|
setWidgetsPath(string widgetsPath)
|
struct
|
uploadWidget(any fileField)
Upload Widget. |
| Methods inherited from class railo-context.Component |
|---|
| None |
| Constructor Detail |
|---|
| Property Detail |
|---|
required - falseinject - coldboxserializable - truerequired - falseinject - LayoutService@cbserializable - truerequired - falseinject - logbox:logger:{this}serializable - truerequired - falseinject - ModuleService@cbserializable - truerequired - falseinject - coldbox:setting:modulesserializable - truerequired - falseinject - id:settingService@cbserializable - truerequired - falseserializable - truerequired - falseserializable - truerequired - falseserializable - true| Method Detail |
|---|
Create new core widget
widgetGet a widget by name
nametypeGet unique, sorted widget categories from main widget query returns Query
nametypeGet widget code return String
name - {String}type - {String}Gets widget file path by name and type return String
name - {String}type - {String}nametypeGet a list of widget icons available in the system
udfwidgettypeGet installed widgets
Get installed widgets as a list of names
onDIComplete
Remove widget
widgetFilefilenameSave widget code return WidgetService
name - {String}code - {String}type - {String}coldboxlayoutServicelogmoduleServicemoduleSettingssettingServicewidgetsIconsIncludePathwidgetsIconsPathwidgetsPathUpload Widget
fileField