| MediaWiki file: Content.php | |
|---|---|
| Location: | includes/content/ | 
| Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 | 
| Classes: | 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();
See also
- Manual:ContentHandler.php
 - Manual:WikitextContent.php
 
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.