ColdBox Platform Version 2.6.3

coldbox.system.plugins
Class clientstorage

WEB-INF.cftags.component
        extended by coldbox.system.frameworkSupertype
            extended by coldbox.system.plugin
                extended by coldbox.system.plugins.clientstorage

public class clientstorage
extends plugin

Client Storage plugin. It provides the user with a mechanism for permanent data storage using the client scope and WDDX.


Constructor Summary
init(any controller)
          Constructor.
 
Method Summary
 boolean deleteVar(string name)
          Tries to delete a permanent client var.
 boolean exists(string name)
          Checks wether the permanent variable exists.
 any getVar(string name, [any default=''])
          Get a new permanent variable. If the variable does not exist. The method returns blank.
 void setVar(string name, any value)
          Set a new permanent variable.
 
Methods inherited from class coldbox.system.plugin
getPluginDescription, getPluginName, getPluginVersion, getpluginPath, setPluginDescription, setPluginName, setPluginVersion
 
Methods inherited from class coldbox.system.frameworkSupertype
abort, announceInterception, dump, getColdboxOCM, getDatasource, getDebugMode, getHash, getInstance, getInterceptor, getMailSettings, getModel, getMyPlugin, getPlugin, getResource, getSetting, getSettingStructure, getSettingsBean, getcontroller, getfwLocale, htmlhead, include, includeUDF, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderView, rethrowit, runEvent, setDebugMode, setNextEvent, setNextRoute, setSetting, setcontroller, settingExists, throw
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(any controller)

Method Detail

deleteVar

public boolean deleteVar(string name)
Tries to delete a permanent client var.

Parameters:
name - The variable name to retrieve.

exists

public boolean exists(string name)
Checks wether the permanent variable exists.

Parameters:
name - The variable name to retrieve.

getVar

public any getVar(string name, [any default=''])
Get a new permanent variable. If the variable does not exist. The method returns blank.

Parameters:
name - The variable name to retrieve.
default - The default value to set. If not used, a blank is returned.

setVar

public void setVar(string name, any value)
Set a new permanent variable.

Parameters:
name - The name of the variable.
value - The value to set in the variable.

ColdBox Platform Version 2.6.3