Go to the documentation of this file.
169 public function serialize( $format =
null );
237 public function copy();
515 public function convert( $toModel, $lossy =
'' );
getContentHandler()
Convenience method that returns the ContentHandler singleton for handling the content model that this...
Set options of the Parser.
getDefaultFormat()
Convenience method that returns the default serialization format for the content model that this Cont...
isRedirect()
Returns whether this Content represents a redirect.
serialize( $format=null)
Convenience method for serializing this Content object.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
isValid()
Returns whether the content is valid.
convert( $toModel, $lossy='')
Converts this content object into another content object with the given content model,...
Class representing a MediaWiki article and history.
preloadTransform(Title $title, ParserOptions $parserOptions, $params=array())
Returns a Content object with preload transformations applied (or this object if no transformations a...
getDeletionUpdates(WikiPage $page, ParserOutput $parserOutput=null)
Returns a list of updates to perform when this content is deleted.
it s the revision text itself In either if gzip is the revision text is gzipped $flags
getSize()
Returns the content's nominal size in bogo-bytes.
prepareSave(WikiPage $page, $flags, $baseRevId, User $user)
Prepare Content for saving.
getWikitextForTransclusion()
getUltimateRedirectTarget()
Construct the redirect destination from this content and return the Title, or null if this content do...
getSection( $sectionId)
Returns the section with the given ID.
getSupportedFormats()
Convenience method that returns the list of serialization formats supported for the content model tha...
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
This class encapsulates "magic words" such as "#redirect", NOTOC, etc.
isEmpty()
Returns true if this Content object represents empty content.
matchMagicWord(MagicWord $word)
Returns true if this Content object matches the given magic word.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
equals(Content $that=null)
Returns true if this Content objects is conceptually equivalent to the given Content object.
addSectionHeader( $header)
Returns a new WikitextContent object with the given section heading prepended, if supported.
presenting them properly to the user as errors is done by the caller $title
getRedirectChain()
Construct the redirect destination from this content and return an array of Titles,...
updateRedirect(Title $target)
If this Content object is a redirect, this method updates the redirect target.
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 d...
getNativeData()
Returns native representation of the data.
isSupportedFormat( $format)
Returns true if $format is a supported serialization format for this Content object,...
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
preSaveTransform(Title $title, User $user, ParserOptions $parserOptions)
Returns a Content object with pre-save transformations applied (or this object if no transformations ...
Base interface for content objects.
Represents a title within MediaWiki.
copy()
Return a copy of this Content object.
getTextForSummary( $maxLength=250)
Returns a textual representation of the content suitable for use in edit summaries and log messages.
getModel()
Returns the ID of the content model used by this Content object.
replaceSection( $section, Content $with, $sectionTitle='')
Replaces a section of the content and returns a Content object with the section replaced.
getParserOutput(Title $title, $revId=null, ParserOptions $options=null, $generateHtml=true)
Parse the Content object and generate a ParserOutput from the result.
getRedirectTarget()
Construct the redirect destination from this content and return a Title, or null if this content does...
isCountable( $hasLinks=null)
Returns true if this content is countable as a "real" wiki page, provided that it's also in a countab...
The User object encapsulates all of the user-specific settings (user_id, name, rights,...