Handbuch:Content.php

This page is a translated version of the page Manual:Content.php and the translation is 67% complete.

Content.php contains the Content interface, the base interface for content objects. A content object represents page content, e.g. the text to show on a page. Content objects have no knowledge about how they relate to wiki pages.

Methoden

  • Content::getNativeData () - Returns native representation of the data. @deprecated since 1.33 use getText() for TextContent instances.


Beispiel

$content = $revision->getContent();
$text = $content->getNativeData();

Siehe auch