/** * Show a log of changes. * @param $logType string: which type of log to show */ function showLog($logType) { global $wgOut; switch ($logType) { case 'bannersettings': $pager = new CentralNoticeBannerLogPager($this); break; case 'bannercontent': case 'bannermessages': $pager = new CentralNoticePageLogPager($this, $logType); break; default: $pager = new CentralNoticeCampaignLogPager($this); } $htmlOut = ''; // Begin log fieldset //$htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); // Show paginated list of log entries $htmlOut .= Xml::tags('div', array('class' => 'cn-pager'), $pager->getNavigationBar()); $htmlOut .= $pager->getBody(); $htmlOut .= Xml::tags('div', array('class' => 'cn-pager'), $pager->getNavigationBar()); // End log fieldset $htmlOut .= Xml::closeElement('fieldset'); $wgOut->addHTML($htmlOut); }