Revision 225 (by ahitrov, 2012/06/27 17:59:40) |
Serialize
|
<%args>
$name => undef
$SETS => undef
$object => undef
</%args>
<%init>
return undef if (! ref($SETS));
return undef if (! $name);
my $FIELDS = {};
for my $element (%{ $SETS })
{
if ($element =~ /^${name}_(\d+)\.checkboxrusname$/)
{
$FIELDS->{$name.'_'.$1} = {} if (! exists($FIELDS->{$name.'_'.$1}));
$FIELDS->{$name.'_'.$1}->{rusname} = $m->comp('/contenido/components/filter.msn', str => $SETS->{$element});
}
}
return $object->_serialize($FIELDS);
</%init>