MediaWiki file: | ContentHandler.php|
---|---|
Location: | includes/content/ |
Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
Classes: | ContentHandler |
ContentHandler.php contains the ContentHandler class, the base interface for content handling. This file has been available since MediaWiki 1.21
.Migration
Revision::getRawText()
was deprecated in MW 1.21, so if you're trying to migrate your code use
$content = $revision->getContent( Revision::RAW );
$text = ContentHandler::getContentText( $content );
Revision::getText()
was deprecated in MW 1.21, so if you're trying to migrate your code use this (see Manual:Revision.php for more info on the different audiences):
$content = $revision->getContent( Revision::FOR_THIS_USER, $user );
$text = ContentHandler::getContentText( $content );
See also
- Manual:Content.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.