Manual:$wgContentHandlerTextFallback

From mediawiki.org
This page is a translated version of the page Manual:$wgContentHandlerTextFallback and the translation is 88% complete.
コンテンツ ハンドラーと記憶域: $wgContentHandlerTextFallback
非テキスト Content オブジェクトのプレーン テキスト バージョンが ContentHandler::getContentText() を使用して要求された場合の対応方法
導入されたバージョン:1.21.0
廃止予定になったバージョン:1.37.0 (Gerrit change 691704; git #e34e93f2)
除去されたバージョン:1.42.0 (Gerrit change 993049; git #ba1563a0)
許容される値:(使用できるパラメーターのいずれか)
既定値:'ignore'

許容されるパラメーター

Content が TextContent オブジェクトではなかった場合、この変数の値に応じて以下の操作が行なわれます:

  • 'ignore' - ContentHandler::getContentText() は null を返します
  • 'fail' - Throw an MWException
  • 'serialize' - 文字列を取得するために、コンテンツ オブジェクトの serialize メソッドを使用します