MediaWiki
REL1_23
|
Public Member Functions | |
__construct ($data) | |
copy () | |
Return a copy of this Content object. | |
getNativeData () | |
Returns native represenation of the data. | |
getParserOutput (Title $title, $revId=null, ParserOptions $options=null, $generateHtml=true) | |
getSize () | |
returns the content's nominal size in bogo-bytes. | |
getTextForSearchIndex () | |
getTextForSummary ($maxlength=250) | |
Returns a textual representation of the content suitable for use in edit summaries and log messages. | |
getWikitextForTransclusion () | |
isCountable ($hasLinks=null) | |
Returns true if this content is countable as a "real" wiki page, provided that it's also in a countable location (e.g. | |
serialize ($format=null) |
Definition at line 352 of file ContentHandlerTest.php.
DummyContentForTesting::__construct | ( | $ | modelId | ) |
string | $modelId |
Reimplemented from AbstractContent.
Definition at line 354 of file ContentHandlerTest.php.
References data.
Return a copy of this Content object.
The following must be true for the object returned if $copy = $original->copy()
* get_class($original) === get_class($copy) * $original->getModel() === $copy->getModel() * $original->equals( $copy )
If and only if the Content object is imutable, the copy() method can and should return $this. That is, $copy === $original may be true, but only for imutable content objects.
Implements Content.
Definition at line 424 of file ContentHandlerTest.php.
Returns native represenation of the data.
Interpretation depends on the data model used, as given by getDataModel().
Implements Content.
Definition at line 397 of file ContentHandlerTest.php.
References data.
Referenced by getParserOutput().
DummyContentForTesting::getParserOutput | ( | Title $ | title, |
$ | revId = null , |
||
ParserOptions $ | options = null , |
||
$ | generateHtml = true |
||
) |
Title | $title | |
int | $revId | Unused. |
null | ParserOptions | $options | |
boolean | $generateHtml | whether to generate Html (default: true). If false, the result of calling getText() on the ParserOutput object returned by this method is undefined. |
Implements Content.
Definition at line 450 of file ContentHandlerTest.php.
References getNativeData().
returns the content's nominal size in bogo-bytes.
Implements Content.
Definition at line 406 of file ContentHandlerTest.php.
References data.
Implements Content.
Definition at line 368 of file ContentHandlerTest.php.
DummyContentForTesting::getTextForSummary | ( | $ | maxlength = 250 | ) |
Returns a textual representation of the content suitable for use in edit summaries and log messages.
int | $maxlength | Maximum length of the summary text. |
Implements Content.
Definition at line 386 of file ContentHandlerTest.php.
Implements Content.
Definition at line 376 of file ContentHandlerTest.php.
DummyContentForTesting::isCountable | ( | $ | hasLinks = null | ) |
Returns true if this content is countable as a "real" wiki page, provided that it's also in a countable location (e.g.
a current revision in the main namespace).
boolean | $hasLinks | if it is known whether this content contains links, provide this information here, to avoid redundant parsing to find out. |
Implements Content.
Definition at line 436 of file ContentHandlerTest.php.
DummyContentForTesting::serialize | ( | $ | format = null | ) |
string | $format |
Reimplemented from AbstractContent.
Definition at line 360 of file ContentHandlerTest.php.
References data.