Compiler: allow optional zlists

SVN:trunk[1935]
This commit is contained in:
Romain Quetiez
2012-04-03 10:07:38 +00:00
parent a2affcc224
commit 7ef5c8ddd7

View File

@@ -667,11 +667,14 @@ EOF;
$sZlists = '';
foreach ($aListRef as $sListCode => $sListTag)
{
$oListNode = $this->GetUniqueElement($oPresentation, $sListTag);
$aAttributes = $this->GetNodeAsArrayOfItems($oListNode);
$sZAttributes = var_export($aAttributes, true);
$sZlists .= " MetaModel::Init_SetZListItems('$sListCode', $sZAttributes);\n";
$oListNode = $this->GetOptionalElement($oPresentation, $sListTag);
if ($oListNode)
{
$aAttributes = $this->GetNodeAsArrayOfItems($oListNode);
$sZAttributes = var_export($aAttributes, true);
$sZlists .= " MetaModel::Init_SetZListItems('$sListCode', $sZAttributes);\n";
}
}
// Methods