Jump to content

Manual:Content.php/dtp

From mediawiki.org
This page is a translated version of the page Manual:Content.php and the translation is 4% complete.
Outdated translations are marked like this.

Content.php contains the Content interface, the base interface for content objects. A content object represents page content, e.g. the text to show on a page. Content objects have no knowledge about how they relate to wiki pages.

Papadakat

  • ContentHandler::makeContent() - create a Content object from given textual representation. Text will be deserialized according to given content model.

Retrieval

Transformation

If you have access to a Content object but need to transform it before saving or on page preload.

Methods

  • getTextForSearchIndex()
  • getWikitextForTransclusion()
  • getTextForSummary()
  • getSize()
  • getModel()
  • getContentHandler()
  • getDefaultFormat()
  • getSupportedFormats()
  • isSupportedFormat()
  • serialize()
  • isEmpty()
  • isValid()
  • equals()
  • copy()
  • isCountable()
  • getRedirectTarget()
  • isRedirect()
  • updateRedirect()
  • getSection()
  • replaceSection()
  • addSectionHeader()
  • matchMagicWord()
  • convert()

Deprecated or removed

Implemented by

See also