Пример #1
0
 private function addExternalHelpLinks()
 {
     if ($this->getRequest()->getVal('printable') === 'yes') {
         return null;
     }
     // FIXME with SMW 3.0, allow to be used with MW 1.25-
     if (!method_exists($this, 'addHelpLink')) {
         return null;
     }
     if ($this->subjectDV->isValid()) {
         $link = SpecialPage::getTitleFor('ExportRDF', $this->subjectDV->getTitle()->getPrefixedText());
         $this->getOutput()->setIndicators(array(Html::rawElement('div', array('class' => 'mw-indicator smw-page-indicator-rdflink'), Html::rawElement('a', array('href' => $link->getLocalUrl('syntax=rdf')), 'RDF'))));
     }
     $this->addHelpLink(wfMessage('smw-specials-browse-helplink')->escaped(), true);
 }