$oBody], ['params' => $oParams], $lineno, $tag); } public function compile(Compiler $compiler) { $sBlockVar = UIBlockHelper::GetBlockVarName('oFieldSet'); $oParams = $this->getAttribute('params'); $compiler ->addDebugInfo($this) ->write("\$aParams = ") ->subcompile($oParams) ->raw(";\n") ->write("\$sLegend = \$aParams['legend'] ?? '';\n") ->write("\$sId = \$aParams['id'] ?? null;\n") ->write("\${$sBlockVar} = new Combodo\\iTop\\Application\\UI\\Base\\Component\\FieldSet\\FieldSet(\$sLegend, \$sId);\n") ->write(UIBlockHelper::AddToParentBlock($sBlockVar)) ->write(UIBlockHelper::PushParentBlock($sBlockVar)) ->subcompile($this->getNode('body')) ->write(UIBlockHelper::PopParentBlock()); } }