Beispiel #1
0
 /**
  * Set page title and show header for this log type
  * @param $type String
  */
 public function showHeader($type)
 {
     if (LogPage::isLogType($type)) {
         $this->out->setPageTitle(LogPage::logName($type));
         $this->out->addHTML(LogPage::logHeader($type));
     }
 }
Beispiel #2
0
 /**
  * Set page title and show header for this log type
  * @param $type Array
  */
 public function showHeader($type)
 {
     // If only one log type is used, then show a special message...
     $headerType = count($type) == 1 ? $type[0] : '';
     if (LogPage::isLogType($headerType)) {
         $this->out->setPageTitle(LogPage::logName($headerType));
         $this->out->addHTML(LogPage::logHeader($headerType));
     } else {
         $this->out->addHTML(wfMsgExt('alllogstext', array('parseinline')));
     }
 }
 /**
  * @param OutputPage &$out where to send output
  * @private
  */
 function showHeader(&$out)
 {
     $type = $this->reader->queryType();
     if (LogPage::isLogType($type)) {
         $out->setPageTitle(LogPage::logName($type));
         $out->addWikiText(LogPage::logHeader($type));
     }
 }