|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.FrameworkSupertype
public class FrameworkSupertype
This is the layer supertype cfc for all ColdBox related objects.
| Method Summary | |
|---|---|
void |
$abort()
Facade for cfabort |
void |
$dump(any var, [boolean isAbort='false'])
Facade for cfmx dump |
void |
$htmlhead(string content)
Facade to cfhtmlhead |
void |
$include([string template])
Facade for cfinclude |
void |
$rethrow(any throwObject)
Rethrow facade |
any |
$throw(string message, [string detail=''], [string type='Framework'])
Facade for cfthrow |
any |
addAsset(any asset)
Add a js/css asset(s) to the html head section |
void |
announceInterception(string state, [struct interceptData='[runtime expression]'])
Announce an interception to the system |
any |
getColdboxOCM()
Get ColdboxOCM: coldbox |
any |
getController()
Get controller: coldbox |
DatasourceBean |
getDatasource([string alias])
I will return to you a datasourceBean according to the alias of the datasource you wish to get from the configstruct |
boolean |
getDebugMode()
Facade to get your current debug mode |
string |
getHash()
Get the instance's unique ID |
any |
getInstance()
Get the instance of this object |
any |
getInterceptor([string interceptorName], [boolean deepSearch='false'])
Get an interceptor |
MailSettingsBean |
getMailSettings()
I will return to you a mailsettingsBean modeled after your mail settings in your config file |
any |
getModel(string name, [boolean useSetterInjection], [string onDICompleteUDF], [boolean debugMode], [string stopRecursion])
Create or retrieve model objects by convention |
any |
getModuleSettings(string module)
Get a module's setting structure if it exists |
any |
getMyPlugin(any plugin, [boolean newInstance='false'], [any module=''], [boolean init='true'])
Facade |
any |
getPlugin([any plugin], [boolean customPlugin='false'], [boolean newInstance='false'], [any module=''], [boolean init='true'])
Facade |
any |
getResource(any resource, [any default], [any locale])
Facade to i18n |
any |
getSetting(string name, [boolean FWSetting='false'])
Facade |
struct |
getSettingStructure([boolean FWSetting='false'], [boolean DeepCopyFlag='false'])
Facade |
ConfigBean |
getSettingsBean([boolean FWSettings='false'])
Returns a configBean with all the configuration structure |
any |
getfwLocale()
Get the user's currently set locale or default locale |
void |
includeUDF(string udflibrary)
Injects a UDF Library (* |
string |
locateDirectoryPath(string pathToCheck)
Locate the real path location of a directory in a coldbox application |
string |
locateFilePath(string pathToCheck)
Locate the real path location of a file in a coldbox application |
void |
persistVariables([string persist=''], [struct persistStruct])
Persist variables for flash redirections |
Any |
populateModel(any model, [string scope=''], [boolean trustedSetter='false'], [string include=''], [string exclude=''])
Populate a named or instantiated model (java/cfc) from the request collection items |
void |
relocate(string url, [boolean addtoken='false'], [boolean postProcessExempt='false'])
This method will be deprecated, please use setNextEvent() instead |
Any |
renderExternalView(string view, [boolean cache='false'], [string cacheTimeout=''], [string cacheLastAccessTimeout=''], [string cacheSuffix=''])
Facade to plugins' render external view |
Any |
renderView(string view, [boolean cache='false'], [string cacheTimeout=''], [string cacheLastAccessTimeout=''], [string cacheSuffix=''], [string module=''])
Facade to plugin's render view |
any |
runEvent([string event=''], [boolean prepostExempt='false'], [boolean private='false'])
Facade to controller's runEvent() method |
void |
setDebugMode(boolean mode)
Facade to set your debug mode |
void |
setNextEvent([string event], [string queryString], [boolean addToken], [string persist], [struct persistStruct], [boolean ssl], [string baseURL], [boolean postProcessExempt], [string URL], [string URI], [numeric statusCode])
Facade |
void |
setNextRoute(string route, [string persist=''], [struct persistStruct], [boolean addToken='false'], [boolean ssl='false'])
This method is now deprecated, please use setNextEvent() |
void |
setSetting(string name, any value)
Facade |
any |
setfwLocale([string locale], [boolean dontloadRBFlag])
Set the default locale to use in the framework for a specific user |
boolean |
settingExists(string name, [boolean FWSetting='false'])
Facade |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Method Detail |
|---|
public void $abort()
public void $dump(any var, [boolean isAbort='false'])
varisAbort - Abort alsopublic void $htmlhead(string content)
content - The content to send to the headpublic void $include([string template])
templatepublic void $rethrow(any throwObject)
throwObject - The cfcatch objectpublic any $throw(string message, [string detail=''], [string type='Framework'])
messagedetailtypepublic any addAsset(any asset)
asset - The asset to load, only js or css files. This can also be a comma delimmited list.public void announceInterception(string state, [struct interceptData='[runtime expression]'])
state - The interception state to executeinterceptData - A data structure used to pass intercepted information.public any getColdboxOCM()
public any getController()
public DatasourceBean getDatasource([string alias])
alias - The alias of the datasource to get from the configstruct (alias property in the config file)public boolean getDebugMode()
public string getHash()
public any getInstance()
public any getInterceptor([string interceptorName], [boolean deepSearch='false'])
interceptorName - The name of the interceptor to search fordeepSearch - By default we search the cache for the interceptor reference. If true, we search all the registered interceptor states for a match.public MailSettingsBean getMailSettings()
public any getModel(string name, [boolean useSetterInjection], [string onDICompleteUDF], [boolean debugMode], [string stopRecursion])
name - The name of the model to retrieveuseSetterInjection - Whether to use setter injection alongside the annotations property injection. cfproperty injection takes precedence.onDICompleteUDF - After Dependencies are injected, this method will look for this UDF and call it if it exists. The default value is onDICompletedebugMode - Debugging Mode or notstopRecursion - A comma-delimmited list of stoprecursion classpaths.public any getModuleSettings(string module)
module - The module namepublic any getMyPlugin(any plugin, [boolean newInstance='false'], [any module=''], [boolean init='true'])
plugin - The plugin name as a stringnewInstancemodule - The module to retrieve the plugin frominit - Auto init() the plugin upon constructionpublic any getPlugin([any plugin], [boolean customPlugin='false'], [boolean newInstance='false'], [any module=''], [boolean init='true'])
plugin - The Plugin object's name to instantiate, as a stringcustomPluginnewInstancemodule - The module to retrieve the plugin frominit - Auto init() the plugin upon constructionpublic any getResource(any resource, [any default], [any locale])
resource - The resource to retrieve from the loaded localized bundledefault - A default value to send back if resource not foundlocale - Pass in which locale to take the resource from. By default it uses the user's current set localepublic any getSetting(string name, [boolean FWSetting='false'])
nameFWSettingpublic struct getSettingStructure([boolean FWSetting='false'], [boolean DeepCopyFlag='false'])
FWSettingDeepCopyFlagpublic ConfigBean getSettingsBean([boolean FWSettings='false'])
FWSettings - Whether to build the config bean with coldbox settings or config settingspublic any getfwLocale()
public void includeUDF(string udflibrary)
udflibrary - The UDF library to inject.public string locateDirectoryPath(string pathToCheck)
pathToCheck - The path to checkpublic string locateFilePath(string pathToCheck)
pathToCheck - The path to checkpublic void persistVariables([string persist=''], [struct persistStruct])
persist - What request collection keys to persist in the relocationpersistStruct - A structure key-value pairs to persist.public Any populateModel(any model, [string scope=''], [boolean trustedSetter='false'], [string include=''], [string exclude=''])
model - The name of the model to get and populate or the acutal model object. If you already have an instance of a model, then use the populateBean() methodscope - Use scope injection instead of setters population. Ex: scope=variables.instance.trustedSetter - If set to true, the setter method will be called even if it does not exist in the beaninclude - A list of keys to include in the populationexclude - A list of keys to exclude in the populationpublic void relocate(string url, [boolean addtoken='false'], [boolean postProcessExempt='false'])
urladdtokenpostProcessExempt - Do not fire the postProcess interceptorspublic Any renderExternalView(string view, [boolean cache='false'], [string cacheTimeout=''], [string cacheLastAccessTimeout=''], [string cacheSuffix=''])
view - The full path to the view. This can be an expanded path or relative. Include extension.cache - True if you want to cache the view.cacheTimeout - The cache timeoutcacheLastAccessTimeout - The last access timeoutcacheSuffix - Add a cache suffix to the view cache entry. Great for multi-domain caching or i18n caching.public Any renderView(string view, [boolean cache='false'], [string cacheTimeout=''], [string cacheLastAccessTimeout=''], [string cacheSuffix=''], [string module=''])
viewcache - True if you want to cache the view.cacheTimeout - The cache timeoutcacheLastAccessTimeout - The last access timeoutcacheSuffix - Add a cache suffix to the view cache entry. Great for multi-domain caching or i18n caching.module - Explicitly render a layout from this modulepublic any runEvent([string event=''], [boolean prepostExempt='false'], [boolean private='false'])
eventprepostExempt - If true, pre/post handlers will not be fired.private - Execute a private event or not, default is falsepublic void setDebugMode(boolean mode)
modepublic void setNextEvent([string event], [string queryString], [boolean addToken], [string persist], [struct persistStruct], [boolean ssl], [string baseURL], [boolean postProcessExempt], [string URL], [string URI], [numeric statusCode])
event - The name of the event to run, if not passed, then it will use the default event found in your configuration file.queryString - The query string to append, if needed. If in SES mode it will be translated to convention name value pairsaddToken - Wether to add the tokens or not. Default is falsepersist - What request collection keys to persist in flash rampersistStruct - A structure key-value pairs to persist in flash ram.ssl - Whether to relocate in SSL or notbaseURL - Use this baseURL instead of the index.cfm that is used by default. You can use this for ssl or any full base url you would like to use. Ex: https://mysite.com/index.cfmpostProcessExempt - Do not fire the postProcess interceptorsURL - The full URL you would like to relocate to instead of an event: ex: URL='http://www.google.com'URI - The relative URI you would like to relocate to instead of an event: ex: URI='/mypath/awesome/here'statusCode - The status code to use in the relocationpublic void setNextRoute(string route, [string persist=''], [struct persistStruct], [boolean addToken='false'], [boolean ssl='false'])
route - The route to relocate to, do not prepend the baseURL or /.persist - What request collection keys to persist in the relocationpersistStruct - A structure key-value pairs to persist.addToken - Wether to add the tokens or not. Default is falsessl - Whether to relocate in SSL or notpublic void setSetting(string name, any value)
namevaluepublic any setfwLocale([string locale], [boolean dontloadRBFlag])
locale - The locale to change and set. Must be Java Style: en_USdontloadRBFlag - Flag to load the resource bundle for the specified locale (If not already loaded) or just change the framework's locale.public boolean settingExists(string name, [boolean FWSetting='false'])
nameFWSetting
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||