手册:Content.php

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

Content.php包含Content界面,这是内容对象的基本界面。 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.

方法

  • Content::getNativeData () - 返回数据的本机表示形式。 @deprecated since 1.33 use getText() for TextContent instances.


示例

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

参见