Manuel:Content.php

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

Content.php contient l'interface Content qui est l'interface de base pour les objets de contenu. Un objet de contenu représente le contenu d'une page par exemple c'est le texte qui est affiché sur une page. Les objets de contenu n'ont aucune notion de la page wiki dans laquelle ils sont inclus.

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.

Méthodes

  • 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

Implémenté par

Voir aussi