addItem( new CSpan($header) ) ->addClass(ZBX_STYLE_MSG_GLOBAL) ->addClass(ZBX_STYLE_MSG_BAD); if ($messages) { $this->addItem( (new CDiv( (new CList($messages))->addClass(ZBX_STYLE_LIST_DASHED) ))->addClass(ZBX_STYLE_MSG_DETAILS) ); } $this->addItem( (new CDiv($buttons))->addClass('msg-buttons') ); } }