Manual:Content.php/ru
Файл MediaWiki: Content.php | |
---|---|
Местоположение: | includes/content/ |
Исходный код: | master • 1.39.3 • 1.38.6 • 1.35.10 |
Классы: | Content |
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.
Methods
Content::getNativeData ()
- Returns native representation of the data. @deprecated since 1.33 use getText() for TextContent instances.
Example
$content = $revision->getContent();
$text = $content->getNativeData();