Jump to content

Manual:Content.php

From mediawiki.org
This page is a translated version of the page Manual:Content.php and the translation is 12% complete.

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.

Instantiation

  • 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.

メソッド

  • 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

関連項目