[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Content object for wiki text pages. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Author: | Daniel Kinzler |
File Size: | 378 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WikitextContent:: (14 methods):
__construct()
getSection()
replaceSection()
addSectionHeader()
preSaveTransform()
preloadTransform()
getRedirectTargetAndText()
getRedirectTarget()
updateRedirect()
isCountable()
getTextForSummary()
fillParserOutput()
getHtml()
matchMagicWord()
Class: WikitextContent - X-Ref
Content object for wiki text pages.__construct( $text ) X-Ref |
No description |
getSection( $sectionId ) X-Ref |
param: string|number $sectionId return: Content|bool|null |
replaceSection( $sectionId, Content $with, $sectionTitle = '' ) X-Ref |
param: string|number|null|bool $sectionId param: Content $with param: string $sectionTitle return: Content |
addSectionHeader( $header ) X-Ref |
Returns a new WikitextContent object with the given section heading prepended. param: string $header return: Content |
preSaveTransform( Title $title, User $user, ParserOptions $popts ) X-Ref |
Returns a Content object with pre-save transformations applied using Parser::preSaveTransform(). param: Title $title param: User $user param: ParserOptions $popts return: Content |
preloadTransform( Title $title, ParserOptions $popts, $params = array() X-Ref |
Returns a Content object with preload transformations applied (or this object if no transformations apply). param: Title $title param: ParserOptions $popts param: array $params return: Content |
getRedirectTargetAndText() X-Ref |
Extract the redirect target and the remaining text on the page. return: array List of two elements: Title|null and string. |
getRedirectTarget() X-Ref |
Implement redirect extraction for wikitext. return: Title|null |
updateRedirect( Title $target ) X-Ref |
This implementation replaces the first link on the page with the given new target if this Content object is a redirect. Otherwise, this method returns $this. param: Title $target return: Content |
isCountable( $hasLinks = null, Title $title = null ) X-Ref |
Returns true if this content is not a redirect, and this content's text is countable according to the criteria defined by $wgArticleCountMethod. param: bool $hasLinks If it is known whether this content contains param: Title $title Optional title, defaults to the title from the current main request. return: bool |
getTextForSummary( $maxlength = 250 ) X-Ref |
param: int $maxlength return: string |
fillParserOutput( Title $title, $revId,ParserOptions $options, $generateHtml, ParserOutput &$output) X-Ref |
Returns a ParserOutput object resulting from parsing the content's text using $wgParser. param: Title $title param: int $revId Revision to pass to the parser (default: null) param: ParserOptions $options (default: null) param: bool $generateHtml (default: true) param: ParserOutput &$output ParserOutput representing the HTML form of the text, |
getHtml() X-Ref |
matchMagicWord( MagicWord $word ) X-Ref |
This implementation calls $word->match() on the this TextContent object's text. param: MagicWord $word return: bool |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |