API: Util
Filename:
fwpUtil_scrunch.ctag
Released With:
5.0.0
Current Version:
1.1.0
Status: Active
Min Lasso Tested: 8.1.0
Max Lasso Tested: 8.5.3
Related:
Still don't get it?
Check out the talk list archives, or join and ask your questions.
Documentation Error or Request?
Email documentation corrections or comments
Converts a Lasso or Custom data type into a plain text format so it can be passed by browser forms or stored into a database.
It's essentially a macro for the following tags:
encode_base64:(compress:(inputValue->serialize))
fwpUtil_scrunch: objectToScrunch
-input (unnamed) - required : an array, map, or other non-string Lasso data type, or a custom type variable.
fwpUtil_scrunch: $myArray; fwpUtil_scrunch: $myCustomType;
<?lassoscript
//............................................................................
//
// pageblocks: (c) 2002-2007 http://www.pageblocks.org/
//
//............................................................................
/*
{fileName= fwpUtil_scrunch.ctag }
{rsrcType= type }
{rsrcName= fwpUtil_scrunch }
{rsrcHTTP= www.pageblocks.org/refc/fwpUtil_scrunch }
{lassoVrsnMin= 8.1.0 }
{lassoVrsnMax= 8.5.3 }
{author= Greg Willits }
{authorEmail= subscribe to pbTalk at www.pageblocks.org/talk/ }
{authorHTTP= www.pageblocks.org }
{desc= serializes and compresses a complex data type
to be web form compatible }
{maintvsrn= 1.1.0 }
{maintrelease= 5.1.0 }
{maintdate= 2006-05-30}
{maintauthor= Greg Willits }
{maintnotes= added tagTrace }
{maintvsrn= 1.0 }
{maintrelease= 5.0.0 }
{maintdate= 2006-01-16 }
{maintauthor= Greg Willits }
{maintnotes= initial release }
*/
//.............................................................................
define_tag:'fwpUtil_scrunch', -priority='replace',
-required='scrunch';
$fw_debug ? $fw_tagTracer->(add:'fwpUtil_scrunch');
return: encode_base64:(compress:(#scrunch->serialize));
/define_tag;
?>
© 2002-2010, pageblocks.org