MediaWiki REL1_33
|
Content object for CSS pages. More...
Public Member Functions | |
__construct ( $text, $modelId=CONTENT_MODEL_CSS) | |
getRedirectTarget () | |
preSaveTransform (Title $title, User $user, ParserOptions $popts) | |
Returns a Content object with pre-save transformations applied using Parser::preSaveTransform(). | |
updateRedirect (Title $target) | |
Public Member Functions inherited from TextContent | |
convert ( $toModel, $lossy='') | |
This implementation provides lossless conversion between content models based on TextContent. | |
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) | |
Returns a textual representation of the content suitable for use in edit summaries and log messages. | |
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 AbstractContent | |
__construct ( $modelId=null) | |
addSectionHeader ( $header) | |
equals (Content $that=null) | |
Decides whether two Content objects are equal. | |
getContentHandler () | |
getDefaultFormat () | |
getDeletionUpdates (WikiPage $page, ParserOutput $parserOutput=null) | |
getModel () | |
getParserOutput (Title $title, $revId=null, ParserOptions $options=null, $generateHtml=true) | |
Returns a ParserOutput object containing information derived from this content. | |
getRedirectChain () | |
getSecondaryDataUpdates (Title $title, Content $old=null, $recursive=true, ParserOutput $parserOutput=null) | |
Returns a list of DataUpdate objects for recording information about this Content in some secondary data store. | |
getSection ( $sectionId) | |
getSupportedFormats () | |
getUltimateRedirectTarget () | |
isEmpty () | |
isRedirect () | |
isSupportedFormat ( $format) | |
isValid () | |
Subclasses may override this to implement (light weight) validation. | |
matchMagicWord (MagicWord $word) | |
This default implementation always returns false. | |
preloadTransform (Title $title, ParserOptions $popts, $params=[]) | |
prepareSave (WikiPage $page, $flags, $parentRevId, User $user) | |
replaceSection ( $sectionId, Content $with, $sectionTitle='') | |
serialize ( $format=null) | |
Protected Member Functions | |
getHtml () | |
Protected Member Functions inherited from TextContent | |
fillParserOutput (Title $title, $revId, ParserOptions $options, $generateHtml, ParserOutput &$output) | |
Fills the provided ParserOutput object with information derived from the content. | |
getHighlightHtml () | |
Generates an HTML version of the content, for display. | |
Protected Member Functions inherited from AbstractContent | |
checkFormat ( $format) | |
checkModelID ( $modelId) | |
equalsInternal (Content $that) | |
Checks whether $that is logically equal to this Content object. | |
Private Attributes | |
bool Title null | $redirectTarget = false |
Additional Inherited Members | |
Static Public Member Functions inherited from TextContent | |
static | normalizeLineEndings ( $text) |
Do a "\\r\\n" -> "\\n" and "\\r" -> "\\n" transformation as well as trim trailing whitespace. | |
Protected Attributes inherited from TextContent | |
string | $mText |
Protected Attributes inherited from AbstractContent | |
$model_id | |
Name of the content model this Content object represents. | |
Content object for CSS pages.
Definition at line 33 of file CssContent.php.
CssContent::__construct | ( | $text, | |
$modelId = CONTENT_MODEL_CSS ) |
string | $text | CSS code. |
string | $modelId | the content content model |
Reimplemented from TextContent.
Definition at line 44 of file CssContent.php.
|
protected |
tag.
Reimplemented from TextContent.
Definition at line 73 of file CssContent.php.
References $html, and(), and TextContent\getText().
CssContent::getRedirectTarget | ( | ) |
Reimplemented from AbstractContent.
Definition at line 97 of file CssContent.php.
References $matches, $redirectTarget, $title, and(), AbstractContent\equals(), AbstractContent\getContentHandler(), and TextContent\getText().
CssContent::preSaveTransform | ( | Title | $title, |
User | $user, | ||
ParserOptions | $popts ) |
Returns a Content object with pre-save transformations applied using Parser::preSaveTransform().
Title | $title | |
User | $user | |
ParserOptions | $popts |
Reimplemented from TextContent.
Definition at line 60 of file CssContent.php.
References $wgParser, and(), and TextContent\getText().
CssContent::updateRedirect | ( | Title | $target | ) |
Title | $target |
Reimplemented from AbstractContent.
Definition at line 86 of file CssContent.php.
References and(), AbstractContent\getContentHandler(), and AbstractContent\isRedirect().
Definition at line 38 of file CssContent.php.
Referenced by getRedirectTarget().