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