protected function addWidget(Lms_View_Widget_Abstract $widget) { if ($widget instanceof Lms_View_Widget_NullWrapper) { foreach ($widget->getNode()->childNodes as $node) { $this->_node->appendChild($node); } } else { $this->_node->appendChild($widget->getNode()); } }