ContentBox Core API 1.5.7

contentbox.model.ui
Class WidgetService

WEB-INF.cftags.component
        extended by contentbox.model.ui.WidgetService

public class WidgetService
extends WEB-INF.cftags.component

******************************************************************************* 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. *******************************************************************************


Constructor Summary
init()
 
Method Summary
 any GETCOLDBOX()
 any GETLAYOUTSERVICE()
 any GETLOG()
 any GETMODULESERVICE()
 any GETMODULESETTINGS()
 any GETSETTINGSERVICE()
 string GETWIDGETSICONSINCLUDEPATH()
 string GETWIDGETSICONSPATH()
 string GETWIDGETSPATH()
 void SETCOLDBOX(any coldbox)
 void SETLAYOUTSERVICE(any layoutService)
 void SETLOG(any log)
 void SETMODULESERVICE(any moduleService)
 void SETMODULESETTINGS(any moduleSettings)
 void SETSETTINGSERVICE(any settingService)
 void SETWIDGETSICONSINCLUDEPATH(string widgetsIconsIncludePath)
 void SETWIDGETSICONSPATH(string widgetsIconsPath)
 void SETWIDGETSPATH(string widgetsPath)
 WidgetService createNewWidget(Widget widget)
          Create new core widget
 any getWidget(any name, string type='core')
          Get a widget by name
 query getWidgetCategories()
          Get unique, sorted widget categories from main widget query returns Query
 string getWidgetCategory(any name, string type='core')
 string getWidgetCode(string name, string type)
          Get widget code return String
 string getWidgetFilePath(string name, string type)
          Gets widget file path by name and type return String
 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 getWidgetsList()
          Get installed widgets as a list of names
 any onDIComplete()
          onDIComplete
 boolean removeWidget(any widgetFile)
          Remove widget
 string ripExtension(any filename)
 WidgetService saveWidgetCode(string name, string code, string type)
          Save widget code return WidgetService
 struct uploadWidget(any fileField)
          Upload Widget
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()

Method Detail

GETCOLDBOX

public any GETCOLDBOX()


GETLAYOUTSERVICE

public any GETLAYOUTSERVICE()


GETLOG

public any GETLOG()


GETMODULESERVICE

public any GETMODULESERVICE()


GETMODULESETTINGS

public any GETMODULESETTINGS()


GETSETTINGSERVICE

public any GETSETTINGSERVICE()


GETWIDGETSICONSINCLUDEPATH

public string GETWIDGETSICONSINCLUDEPATH()


GETWIDGETSICONSPATH

public string GETWIDGETSICONSPATH()


GETWIDGETSPATH

public string GETWIDGETSPATH()


SETCOLDBOX

public void SETCOLDBOX(any coldbox)

Parameters:
coldbox

SETLAYOUTSERVICE

public void SETLAYOUTSERVICE(any layoutService)

Parameters:
layoutService

SETLOG

public void SETLOG(any log)

Parameters:
log

SETMODULESERVICE

public void SETMODULESERVICE(any moduleService)

Parameters:
moduleService

SETMODULESETTINGS

public void SETMODULESETTINGS(any moduleSettings)

Parameters:
moduleSettings

SETSETTINGSERVICE

public void SETSETTINGSERVICE(any settingService)

Parameters:
settingService

SETWIDGETSICONSINCLUDEPATH

public void SETWIDGETSICONSINCLUDEPATH(string widgetsIconsIncludePath)

Parameters:
widgetsIconsIncludePath

SETWIDGETSICONSPATH

public void SETWIDGETSICONSPATH(string widgetsIconsPath)

Parameters:
widgetsIconsPath

SETWIDGETSPATH

public void SETWIDGETSPATH(string widgetsPath)

Parameters:
widgetsPath

createNewWidget

public WidgetService createNewWidget(Widget widget)
Create new core widget

Parameters:
widget

getWidget

public any getWidget(any name, string type='core')
Get a widget by name

Parameters:
name
type

getWidgetCategories

public query getWidgetCategories()
Get unique, sorted widget categories from main widget query returns Query


getWidgetCategory

public string getWidgetCategory(any name, string type='core')

Parameters:
name
type

getWidgetCode

public string getWidgetCode(string name, string type)
Get widget code return String

Parameters:
name - {String}
type - {String}

getWidgetFilePath

public string getWidgetFilePath(string name, string type)
Gets widget file path by name and type return String

Parameters:
name - {String}
type - {String}

getWidgetIcon

public string getWidgetIcon(any name, string type='core')

Parameters:
name
type

getWidgetIcons

public array getWidgetIcons()
Get a list of widget icons available in the system


getWidgetRenderArgs

public any getWidgetRenderArgs([any udf], [any widget], [any type])

Parameters:
udf
widget
type

getWidgets

public query getWidgets()
Get installed widgets


getWidgetsList

public string getWidgetsList()
Get installed widgets as a list of names


onDIComplete

public any onDIComplete()
onDIComplete


removeWidget

public boolean removeWidget(any widgetFile)
Remove widget

Parameters:
widgetFile

ripExtension

public string ripExtension(any filename)

Parameters:
filename

saveWidgetCode

public WidgetService saveWidgetCode(string name, string code, string type)
Save widget code return WidgetService

Parameters:
name - {String}
code - {String}
type - {String}

uploadWidget

public struct uploadWidget(any fileField)
Upload Widget

Parameters:
fileField

ContentBox Core API 1.5.7