미디어위키 $wgOut

1 개요[ | ]

미디어위키 전역변수 $wgOut
  • HTTP 응답을 위한 OutputPage 객체

2 예제[ | ]

global $wgOut;
$wgOut->mDebugtext .= "This is debug text";
$wgOut->setPageTitle( wfMsg( 'loginsuccesstitle' ) );
$wgOut->setRobotpolicy( 'noindex,nofollow' );
$wgOut->setArticleRelated( false );
$wgOut->addWikiText( $msg );
$wgOut->addWikiMsg( 'descriptionpage' );
$wgOut->addHTML( '<script src="/w/index.php?title=User:Example&amp;action=raw"></script>' );
$wgOut->getPageTitle();

// Get all categories of the current page: 
$title = Title::newFromText( $wgOut->getPageTitle() );
$title->getParentCategories();

// Perform a 302 redirect to the same page with a parameter added to the query string:
$wgOut->redirect( $this->getTitle()->getLocalUrl( "foo=$bar" ) );

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}