API: Cnfg
Filename:
fwpCnfg_splitLabels.ctag
Released With:
5.2.0
Current Version:
1.0.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 series of EOL delimited label___value definitions and splits them into an array of pairs or a map.
The label___value definitions will typically come from the result of fwpCnfg_splitBlocks.
The result of fwpCnfg_splitLabels would often be passed on to fwpCnfg_makevars.
The combination of these tags is used for the parsing of standard PageBlocks configuration blocks.
fwpCnfg_splitLabels: labelsString;
labelsString (unnamed) = (required) : a string of EOL delimited lines where each line has a label___ and a value. The label may be followed by any white space.
var:'test' =
'{{circle:
label1___ value1
label2___ value2
}}';
var:'x' = fwpCnfg_splitBlocks: $test;
var:'z' = fwpCnfg_splitLabels: ($x->(find:'circle'));
Results in $z = (array: ('label1'='value1'), ('label2'='value2'))
© 2002-2012, pageblocks.org