Open main menu

Podręcznik:$wgContentHandlerTextFallback

This page is a translated version of the page Manual:$wgContentHandlerTextFallback and the translation is 25% complete.

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎中文 • ‎日本語
Wyjście: $wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::getContentText()
Wprowadzono w wersji:1.21.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(one of the allowed parameters)
Domyślna wartość:'ignore'

Dozwolone parametry

Depending on the value, the following action is taken when Content is not a TextContent object:

  • 'ignore' - ContentHandler::getContentText returns null
  • 'fail' - Throw an MWException
  • 'serialize' - Use the Content objects serialize method to get a string