|
MediaWiki master
|
Content for Vue pages. More...
Inherits MediaWiki\Content\TextContent.

Public Member Functions | |
| __construct ( $text, $modelId=CONTENT_MODEL_VUE) | |
Public Member Functions inherited from MediaWiki\Content\TextContent | |
| convert ( $toModel, $lossy='') | |
| This implementation provides lossless conversion between content models based on TextContent. | |
| copy () | |
Create a copy of this Content object.The following must be true for the returned object, given $copy = $original->copy():
| |
| diff (Content $that, ?Language $lang=null) | |
| Diff this content object with another content object. | |
| getNativeData () | |
| Returns the text represented by this Content object, as a string. | |
| getSize () | |
| Returns the text's size in bytes. | |
| getText () | |
| Returns the text represented by this Content object, as a string. | |
| getTextForSearchIndex () | |
| Returns the text represented by this Content object, as a string. | |
| getTextForSummary ( $maxlength=250) | |
| getWikitextForTransclusion () | |
| Returns attempts to convert this content object to wikitext, and then returns the text string. | |
| isCountable ( $hasLinks=null) | |
| Returns true if this content is not a redirect, and $wgArticleCountMethod is "any". | |
Public Member Functions inherited from MediaWiki\Content\AbstractContent | |
| __construct ( $modelId=null) | |
| addSectionHeader ( $header) | |
| equals (?Content $that=null) | |
| getContentHandler () | |
| getDefaultFormat () | |
| getModel () | |
| getRedirectTarget () | |
| Subclasses that implement redirects should override this. | |
| getSection ( $sectionId) | |
| getSupportedFormats () | |
| isEmpty () | |
| isRedirect () | |
| isSupportedFormat ( $format) | |
| isValid () | |
| matchMagicWord (MagicWord $word) | |
| This default implementation always returns false. | |
| replaceSection ( $sectionId, Content $with, $sectionTitle='') | |
| serialize ( $format=null) | |
| updateRedirect (Title $target) | |
| This default implementation always returns $this. | |
Additional Inherited Members | |
Static Public Member Functions inherited from MediaWiki\Content\TextContent | |
| static | normalizeLineEndings ( $text) |
| Do a "\\r\\n" -> "\\n" and "\\r" -> "\\n" transformation as well as trim trailing whitespace. | |
Static Public Member Functions inherited from MediaWiki\Content\AbstractContent | |
| static | jsonClassCodec (JsonCodecInterface $codec, ContainerInterface $serviceContainer) |
Protected Member Functions inherited from MediaWiki\Content\AbstractContent | |
| checkFormat ( $format) | |
| Helper for subclasses. | |
| checkModelID ( $modelId) | |
| Helper for subclasses. | |
| equalsInternal (Content $that) | |
| Helper for AbstractContent::equals. | |
| getContentHandlerFactory () | |
Protected Attributes inherited from MediaWiki\Content\TextContent | |
| string | $mText |
Protected Attributes inherited from MediaWiki\Content\AbstractContent | |
| string | $model_id |
| MediaWiki\Content\VueContent::__construct | ( | $text, | |
| $modelId = CONTENT_MODEL_VUE ) |
| string | $text | Vue code. |
| string | $modelId | the content model name |
Reimplemented from MediaWiki\Content\TextContent.
Definition at line 27 of file VueContent.php.