WDDXSerialize(input [, useTimeZoneInfo])
Last updated October 16, 2002
Version: 2 | Requires: ColdFusion MX | Library: CFMLLib
Description:
Allows for serialization to WDDX.
Return Values:
Returns a WDDX packet.
Example:
x = arrayNew(1);
x[1] = now();
x[2] = structNew();
x[2].foo = "goo";
packet = wddxSerialize(x);
writeOutput(left(htmlEditFormat(packet),100));
</cfscript>
Parameters:
| Name | Description | Required |
|---|---|---|
| input | The value to serialize. | Yes |
| useTimeZoneInfo | Indicates whether to output time-zone information when serializing CFML to WDDX. The default is yes. | No |
Full UDF Source:
<!---
Allows for serialization to WDDX.
Updated for CFMX var scope syntax.
@param input The value to serialize. (Required)
@param useTimeZoneInfo Indicates whether to output time-zone information when serializing CFML to WDDX. The default is yes. (Optional)
@return Returns a WDDX packet.
@author Raymond Camden (ray@camdenfamily.com)
@version 2, October 16, 2002
--->
<cffunction name="wddxSerialize" output="false" returnType="string">
<cfargument name="input" type="any" required="true">
<cfargument name="useTimeZoneInfo" type="boolean" required="false" default="true">
<cfset var output="">
<cfwddx action="cfml2wddx" input="#input#" output="output" useTimeZoneInfo="#useTimeZoneInfo#">
<cfreturn output>
</cffunction>
Search CFLib.org
Latest Additions
Shawn Porter added
DeMoronize
3 hour(s) ago
Chris Carey added
readPropertiesFi...
1 day(s) ago
Randy Johnson added
lastDayofWeek
3 day(s) ago
Frank Marion added
sitemapPing
7 day(s) ago
Top Rated
QuickSort
Rated 5.0, 3 time(s)
indentXml
Rated 5.0, 3 time(s)
queryColumnsToSt...
Rated 5.0, 3 time(s)
generateSsccAsn
Rated 5.0, 3 time(s)