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