Podręcznik:Content.php

This page is a translated version of the page Manual:Content.php and the translation is 19% 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.

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

Metody

  • 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

Zobacz też