Handbuch:ContentHandler.php

This page is a translated version of the page Manual:ContentHandler.php and the translation is 43% complete.
Other languages:

ContentHandler.php contains the ContentHandler class, the base interface for content handling. Diese Datei ist seit MediaWiki 1.21 verfügbar.

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 Handbuch:Revision.php for more info on the different audiences):

$content = $revision->getContent( Revision::FOR_THIS_USER, $user );
$text = ContentHandler::getContentText( $content );

Siehe auch