MediaWiki file: | WikitextContent.php|
---|---|
Location: | includes/content/ |
Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
Classes: | WikitextContent |
WikitextContent.php contains the Content object for wiki text pages.
Examples
This will edit a page called 'Foo' with the content 'Hello world' and summary 'Greetings' by the user 'WorldGreeter'.
$user = User::newSystemUser( 'WorldGreeter', [ 'steal' => true ] );
$page = WikiPage::factory( 'Foo' );
$content = new WikitextContent( 'Hello world' );
$success = $page->doEditContent ( $content, 'Greetings', 0, false, $user );
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.