|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.core.conversion.DataMarshaller
public class DataMarshaller
Ability to serialize/deserialize data.
Constructor Summary | |
---|---|
init()
Constructor |
Method Summary | |
---|---|
any |
marshallData(string type, any data, [string encoding='utf-8'], [string jsonCallback=''], [string jsonQueryFormat='query'], [string xmlColumnList=''], [boolean xmlUseCDATA='false'], [string xmlListDelimiter=','], [string xmlRootName=''], [struct pdfArgs='[runtime expression]'])
Marshall data according to types or conventions on data objects |
any |
renderContent(any type, [any variable], [any encoding='utf-8'], [boolean reset='false'])
Facade to cfcontent as stupid CF does not allow via script |
any |
resetContent()
Reset the CF content |
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init()
Method Detail |
---|
public any marshallData(string type, any data, [string encoding='utf-8'], [string jsonCallback=''], [string jsonQueryFormat='query'], [string xmlColumnList=''], [boolean xmlUseCDATA='false'], [string xmlListDelimiter=','], [string xmlRootName=''], [struct pdfArgs='[runtime expression]'])
type
- The type to marshal to. Valid values are JSON, XML, WDDX, PLAIN, HTML, TEXTdata
- The data to marshalencoding
- The default character encoding to usejsonCallback
- Only needed when using JSONP, this is the callback to add to the JSON packetjsonQueryFormat
- JSON Only: query or arrayxmlColumnList
- XML Only: Choose which columns to inspect, by default it uses all the columns in the query, if using a queryxmlUseCDATA
- XML Only: Use CDATA content for ALL values. The default is falsexmlListDelimiter
- XML Only: The delimiter in the list. Comma by defaultxmlRootName
- XML Only: The name of the initial root element of the XML packetpdfArgs
- All the PDF arguments to pass along to the CFDocument tag.public any renderContent(any type, [any variable], [any encoding='utf-8'], [boolean reset='false'])
type
- The content typevariable
- The variable to render content fromencoding
- The encodingreset
- Reset the conten or notpublic any resetContent()
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |